From: berick Date: Fri, 18 Feb 2011 14:08:51 +0000 (-0500) Subject: under /eg/opac, expire html immediately to pick up dynamic data; set public cache... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4fd51369538df0676b275303592d20ba0874140b;p=evergreen%2Fequinox.git under /eg/opac, expire html immediately to pick up dynamic data; set public cache-control on general images/css/js content --- diff --git a/Open-ILS/examples/apache/eg_vhost.conf b/Open-ILS/examples/apache/eg_vhost.conf index 46dfebc4ad..bfedca943e 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -567,13 +567,14 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT] PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGCatLoader" -# Disable caching for development.. - -# Header set Expires "Thu, 19 Nov 1981 08:52:00 GM" -# Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0" -# Header set Pragma "no-cache" - + # Expire the HTML immediately since we're loading dynamic data for each page + ExpiresActive On + ExpiresByType text/html "access plus 0 seconds" + + # should pick up the default expire time... + Header append Cache-Control "public" + # Note: the template processor will decline handling anything it does not # have an explicit configuration for, which means it will fall back to