diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-08-06 09:29:17 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-08-06 09:29:17 +0100 |
commit | 6a1bad5a32aba056a70a039c4ab31759e509743f (patch) | |
tree | eafbdc358eedba78be87d66da1f93e312d552bdd | |
parent | ecfad8f2f98fb2ce7ca937bbf473ff5d64ccba57 (diff) |
Group httpd assets directives together
-rw-r--r-- | config/httpd-vhost.conf-example | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/httpd-vhost.conf-example b/config/httpd-vhost.conf-example index 98a7b6b48..c02c4d292 100644 --- a/config/httpd-vhost.conf-example +++ b/config/httpd-vhost.conf-example @@ -112,6 +112,12 @@ </IfModule> </Location> + # Cache assets + ExpiresActive On + <LocationMatch "^/(assets).*\.(ico|gif|jpe?g|png|js|css|svg|ttf|otf|eot|woff)$"> + ExpiresDefault "access plus 1 day" + </LocationMatch> + # Compress font resources <IfModule mod_deflate.c> <IfModule mod_mime.c> @@ -124,12 +130,6 @@ AddOutputFilterByType DEFLATE image/svg+xml </IfModule> - # Cache assets - ExpiresActive On - <LocationMatch "^/(assets).*\.(ico|gif|jpe?g|png|js|css|svg|ttf|otf|eot|woff)$"> - ExpiresDefault "access plus 1 day" - </LocationMatch> - # Include optional configuration Include vhost.d/alaveteli |