diff --git a/ChangeLog b/ChangeLog index d105cf9842d4c18f4386de1843ec17497f001c71..400f0b78f9118e4a56346e5f01000d5eb8aff52c 100755 --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,7 @@ 2011-01-21 Steffen Gebert <steffen@steffen-gebert.de> * Fixed bug #17167: Cache ExtDirect::getAPI calls + * Fixed bug #17181: Add Expires header to _.htaccess 2011-01-21 Stanislas Rolland <typo3@sjbr.ca> diff --git a/_.htaccess b/_.htaccess index 3051d92a0038d57408be749a1ce01290e1b202bc..406329a339e066985b5e78a62cfa6232f6876022 100644 --- a/_.htaccess +++ b/_.htaccess @@ -51,6 +51,24 @@ ### End: Compression via TYPO3 ### +### Begin: Browser caching of ressource files ### + +# Enable long browser caching for JavaScript and CSS files. + +# This affects Frontend and Backend and increases performance. +# You can also add other file extensions (like gif, png, jpg), if you want them to be longer caced, too. + +<FilesMatch "\.(js|css)$"> + <IfModule mod_expires.c> + ExpiresActive on + ExpiresDefault "access plus 7 days" + </IfModule> + FileETag MTime Size +</FilesMatch> + +### End: Browser caching of ressource files ### + + ### Begin: Settings for mod_rewrite ### # You need rewriting, if you use a URL-Rewriting extension (RealURL, CoolUri, SimulateStatic).