Update mod_expires conf

master
Daniel Berteaud 11 years ago
parent c671147b8c
commit 49dace5cf4
  1. 15
      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
</IfModule> Header unset ETag
<FilesMatch "/opt/vroom/(js|css|img|fonts|snd)/.*"> </IfModule>
<IfModule mod_expires.c> ExpiresActive on
ExpiresActive On ExpiresDefault "access plus 1 month"
ExpiresDefault "access plus 1 month" ExpiresByType application/json "access plus 0 seconds"
</IfModule> ExpiresByType application/xml "access plus 0 seconds"
</FilesMatch> 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>
ExpiresActive on
ExpiresDefault "access plus 1 month"
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> </Location>
<LocationMatch "^/([a-z]{2}/)?(\d{10}/)?(js|css|img|fonts|snd)/">
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
</IfModule>
</LocationMatch>
</VirtualHost> </VirtualHost>

Loading…
Cancel
Save