under /eg/opac, expire html immediately to pick up dynamic data; set public cache...
authorberick <berick@esilibrary.com>
Fri, 18 Feb 2011 14:08:51 +0000 (09:08 -0500)
committerberick <berick@esilibrary.com>
Fri, 18 Feb 2011 14:08:51 +0000 (09:08 -0500)
Open-ILS/examples/apache/eg_vhost.conf

index 99564e8..194696c 100644 (file)
@@ -560,13 +560,14 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]
 </Location>
 <Location /eg/opac>
     PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGCatLoader"
-#    Disable caching for development..
-    <IfModule mod_headers.c>
-#        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"
-    </IfModule>
+    # Expire the HTML immediately since we're loading dynamic data for each page
+    ExpiresActive On
+    ExpiresByType text/html "access plus 0 seconds"
 </Location>
+<LocationMatch ^/(images|css|js)/>
+    # should pick up the default expire time...
+    Header append Cache-Control "public"
+</LocationMatch>
 
 # Note: the template processor will decline handling anything it does not
 # have an explicit configuration for, which means it will fall back to