Commit c72a6dff authored by walper's avatar walper

[bp/r54147][ENH] Slightly optimized htaccess following googles cache directive...

[bp/r54147][ENH] Slightly optimized htaccess following googles cache directive advise. Disabled cache-control in favour of expires. Separate modified since definitions for js/css and images.
parent eb3e12d9
......@@ -66,9 +66,18 @@
# but, be aware of the possible disadvantages!
# http://httpd.apache.org/docs/current/en/mod/core.html#keepalive
# <IfModule mod_headers.c>
# Header set Connection Keep-Alive
# </IfModule>
<IfModule mod_headers.c>
#Header set Connection Keep-Alive
# When to update client cache
# Google suggests to use Expires in favour of Cache-Control
#Header unset Expires
Header unset Cache-Control
# How to figure out if client cache needs an update
# Google wants either Last-Modified or ETag
#Header unset ETag
</IfModule>
# Using ETags will improve the YSlow scores
......@@ -76,7 +85,11 @@ FileETag none
# Expires headers: If the site is in active development, you may want to comment out this section.
<IfModule mod_expires.c>
<FilesMatch "\.(js|png|gif|jpg|css|ico)$">
<FilesMatch "\.(png|gif|jpg|ico)$">
ExpiresActive on
ExpiresDefault "access plus 1 month"
</FilesMatch>
<FilesMatch "\.(js|css)$">
ExpiresActive on
ExpiresDefault "access plus 1 month"
</FilesMatch>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment