From: Dan Scott Date: Sat, 8 Apr 2017 15:02:02 +0000 (-0400) Subject: LP#1681095 Set aggressive default cache expires timelines X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1cb0d8c63c445979e272f4ad72ea912afcabf7e2;p=evergreen%2Fjoelewis.git LP#1681095 Set aggressive default cache expires timelines Now that we have a broad cache-busting mechanism, set the default cache expires timelines for non-HTML types far in the future. Signed-off-by: Dan Scott Signed-off-by: Josh Stompro Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/examples/apache/eg.conf.in b/Open-ILS/examples/apache/eg.conf.in index 19d8736652..f8c9729cb4 100644 --- a/Open-ILS/examples/apache/eg.conf.in +++ b/Open-ILS/examples/apache/eg.conf.in @@ -88,17 +88,19 @@ Alias /updates/ "@localstatedir@/updates/pub/" Options ExecCGI - # ---------------------------------------------------------------------------------- -# OPTIONAL: Set how long the client will cache our content. Change to suit +# OPTIONAL: Set how long the client will cache our content. +# We set a long expires time for CSS, JavaScript, and images (default) because +# you can change the cache-key in opac/parts/config.tt2 to force browsers to +# reload them immediately. # ---------------------------------------------------------------------------------- ExpiresActive On -ExpiresDefault "access plus 1 month" +ExpiresDefault "access plus 1 year" ExpiresByType text/html "access plus 18 hours" ExpiresByType application/xhtml+xml "access plus 18 hours" -ExpiresByType application/x-javascript "access plus 18 hours" -ExpiresByType application/javascript "access plus 18 hours" -ExpiresByType text/css "access plus 50 minutes" +ExpiresByType application/x-javascript "access plus 1 year" +ExpiresByType application/javascript "access plus 1 year" +ExpiresByType text/css "access plus 1 year" # ---------------------------------------------------------------------------------- # Set up our SSL virtual host diff --git a/Open-ILS/examples/apache_24/eg.conf.in b/Open-ILS/examples/apache_24/eg.conf.in index 72bcd5ec8a..2ee0153ad2 100644 --- a/Open-ILS/examples/apache_24/eg.conf.in +++ b/Open-ILS/examples/apache_24/eg.conf.in @@ -85,17 +85,19 @@ Alias /updates/ "@localstatedir@/updates/pub/" Require all granted - # ---------------------------------------------------------------------------------- -# OPTIONAL: Set how long the client will cache our content. Change to suit +# OPTIONAL: Set how long the client will cache our content. +# We set a long expires time for CSS, JavaScript, and images (default) because +# you can change the cache-key in opac/parts/config.tt2 to force browsers to +# reload them immediately. # ---------------------------------------------------------------------------------- ExpiresActive On -ExpiresDefault "access plus 1 month" +ExpiresDefault "access plus 1 year" ExpiresByType text/html "access plus 18 hours" ExpiresByType application/xhtml+xml "access plus 18 hours" -ExpiresByType application/x-javascript "access plus 18 hours" -ExpiresByType application/javascript "access plus 18 hours" -ExpiresByType text/css "access plus 50 minutes" +ExpiresByType application/x-javascript "access plus 1 year" +ExpiresByType application/javascript "access plus 1 year" +ExpiresByType text/css "access plus 1 year" # ---------------------------------------------------------------------------------- # Set up our SSL virtual host