make apache cache-control/expires settings only apply to static files; shimmie will take care of the web pages
This commit is contained in:
parent
082730f29a
commit
9b93df4e22
1 changed files with 6 additions and 3 deletions
|
@ -30,9 +30,12 @@ DefaultType image/jpeg
|
||||||
|
|
||||||
<IfModule mod_expires.c>
|
<IfModule mod_expires.c>
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
ExpiresDefault "access plus 1 month"
|
<FilesMatch "([0-9a-f]{32}|\.(gif|jpe?g|png|css|js))$">
|
||||||
ExpiresByType text/html "now"
|
Header set Cache-Control "public, max-age=2629743"
|
||||||
ExpiresByType text/plain "now"
|
ExpiresDefault "access plus 1 month"
|
||||||
|
</FilesMatch>
|
||||||
|
#ExpiresByType text/html "now"
|
||||||
|
#ExpiresByType text/plain "now"
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<ifmodule mod_deflate.c>
|
<ifmodule mod_deflate.c>
|
||||||
|
|
Reference in a new issue