From 4fd51369538df0676b275303592d20ba0874140b Mon Sep 17 00:00:00 2001 From: berick Date: Fri, 18 Feb 2011 09:08:51 -0500 Subject: [PATCH] under /eg/opac, expire html immediately to pick up dynamic data; set public cache-control on general images/css/js content --- Open-ILS/examples/apache/eg_vhost.conf | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 -- 2.11.0