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

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

Loading…
Cancel
Save