[TYPO3-core] RFC #17181: Add Expires header to _.htaccess
Steffen Gebert
steffen at steffen-gebert.de
Fri Jan 21 13:58:38 CET 2011
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=17181
>
> Solution:
> Add Expires header for \.(css|js) files in _.htaccess and enable them by
> default (as they are save ones [1]).
>
> Note:
> The pattern also matches .(css|js).gzip, as there is no trailing $.
I've changed the
> <FilesMatch "\.(js|css)">
to
> <FilesMatch "\.(js|css)$">
This only matches .js and .css as *real* file extensions, but not
anywhere in the file name (as .js.gzip).
These .gzip files coming from the compressor will be handled by #17175
Committed to trunk rev. 10206
Adding gif|png|jpg to the pattern is encouraged from my side, to
optimize your site's performance - but you have to do that on your own
(risk).
Kind regards
Steffen
--
Steffen Gebert
TYPO3 Core Team Member
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list