From 180abc828484a0d0a9854ef81c75255e9313c729 Mon Sep 17 00:00:00 2001 From: Steffen Gebert <steffen.gebert@typo3.org> Date: Fri, 21 Jan 2011 12:55:23 +0000 Subject: [PATCH] Fixed bug #17181: Add Expires header to _.htaccess git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10206 709f56b5-9817-0410-a4d7-c38de5d9e867 --- ChangeLog | 1 + _.htaccess | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index d105cf9842d4..400f0b78f911 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 3051d92a0038..406329a339e0 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). -- GitLab