Update mod_expires conf

master
Daniel Berteaud 11 years ago
parent c671147b8c
commit 49dace5cf4
  1. 11
      conf/httpd_alias.conf
  2. 13
      conf/httpd_vhost.conf

@ -20,13 +20,14 @@ ScriptAlias /vroom /opt/vroom/public/vroom.pl
</IfModule>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
Header unset ETag
</IfModule>
<FilesMatch "/opt/vroom/(js|css|img|fonts|snd)/.*">
<IfModule mod_expires.c>
ExpiresActive On
ExpiresActive on
ExpiresDefault "access plus 1 month"
</IfModule>
</FilesMatch>
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType text/html "access plus 0 seconds"
</Directory>
<Location /socket.io>
SSLRequireSSL on

@ -29,13 +29,14 @@
</IfModule>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
Header unset ETag
</IfModule>
</Location>
<LocationMatch "^/([a-z]{2}/)?(\d{10}/)?(js|css|img|fonts|snd)/">
<IfModule mod_expires.c>
ExpiresActive On
ExpiresActive on
ExpiresDefault "access plus 1 month"
</IfModule>
</LocationMatch>
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType text/html "access plus 0 seconds"
</Location>
</VirtualHost>

Loading…
Cancel
Save