This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| typo3_pagespeed [2016/11/14 13:40] – created admin | typo3_pagespeed [2021/12/06 21:32] (current) – removed admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== TYPO3 Pagespeed ====== | ||
| - | ===== Scriptmerger ===== | ||
| - | |||
| - | <code ext_scriptmerger.ts> | ||
| - | plugin.tx_scriptmerger { | ||
| - | css { | ||
| - | enable = 1 | ||
| - | addContentInDocument = 0 | ||
| - | |||
| - | # minification | ||
| - | minify { | ||
| - | enable = 1 | ||
| - | ignore = \.min\. | ||
| - | } | ||
| - | |||
| - | # gzip compression | ||
| - | compress { | ||
| - | enable = 1 | ||
| - | ignore = \.gz\. | ||
| - | } | ||
| - | |||
| - | # merging | ||
| - | merge { | ||
| - | enable = 1 | ||
| - | ignore = | ||
| - | } | ||
| - | } | ||
| - | |||
| - | javascript { | ||
| - | enable = 1 | ||
| - | parseBody = 0 | ||
| - | addBeforeBody = 0 | ||
| - | doNotRemoveInDocInBody = 1 | ||
| - | addContentInDocument = 0 | ||
| - | |||
| - | # minification | ||
| - | minify { | ||
| - | enable = 1 | ||
| - | useJSMinPlus = 0 | ||
| - | ignore = \?, | ||
| - | } | ||
| - | |||
| - | # gzip compression | ||
| - | compress { | ||
| - | enable = 1 | ||
| - | ignore = \?, | ||
| - | } | ||
| - | |||
| - | # merging | ||
| - | merge { | ||
| - | enable = 1 | ||
| - | ignore = \?, | ||
| - | } | ||
| - | } | ||
| - | } | ||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | ===== .htaccess ===== | ||
| - | |||
| - | <code .htaccess> | ||
| - | ### BEGIN EXT: | ||
| - | |||
| - | # Removal of ETag (saves some bytes; the last modified header is still there) | ||
| - | FileETag MTime Size | ||
| - | < | ||
| - | FileETag none | ||
| - | </ | ||
| - | |||
| - | # Client caching of JS/CSS files (because they are merged with an applied hash!) | ||
| - | # Note: Unsetting of the last modified header causes a permant 200 Ok status | ||
| - | < | ||
| - | < | ||
| - | ExpiresActive on | ||
| - | ExpiresDefault " | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | Header append Cache-Control " | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | # deliver the uncompressed file if gzip encoding isn't accepted | ||
| - | AddEncoding x-gzip .gz | ||
| - | RewriteCond %{HTTP: | ||
| - | RewriteCond %{HTTP: | ||
| - | RewriteRule ^typo3temp/ | ||
| - | |||
| - | ### END EXT: | ||
| - | |||
| - | </ | ||