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-Tag: opac-tt-poc-demo2~19 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f71a1d5b6ee30a92741ef3ec3ee721a47f3e74f7;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 99564e8c7d..194696cf03 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -560,13 +560,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