From c99f3ca2fd1a4fc09a096df9ab93a92709c8f6bd Mon Sep 17 00:00:00 2001 From: berick Date: Fri, 18 Feb 2011 09:14:18 -0500 Subject: [PATCH] while we're at it, condense the js/css/images deflat and cache control into 1 block --- Open-ILS/examples/apache/eg_vhost.conf | 40 +++++++++++--------------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/Open-ILS/examples/apache/eg_vhost.conf b/Open-ILS/examples/apache/eg_vhost.conf index 194696cf03..cd263bb300 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -169,26 +169,6 @@ RewriteRule . - [E=locale:%1] - - # ---------------------------------------------------------------------------------- - # Some mod_deflate fun - # ---------------------------------------------------------------------------------- - - SetOutputFilter DEFLATE - - BrowserMatch ^Mozilla/4 gzip-only-text/html - BrowserMatch ^Mozilla/4\.0[678] no-gzip - BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html - - SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary - - - Header append Vary User-Agent env=!dont-vary - - - - - # ---------------------------------------------------------------------------------- # Force SSL on the OPAC's "My Account" page # ---------------------------------------------------------------------------------- @@ -554,20 +534,32 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT] BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary + Header append Cache-Control "public" Header append Vary User-Agent env=!dont-vary + + # should pick up the default expire time from eg.conf... + + SetOutputFilter DEFLATE + BrowserMatch ^Mozilla/4 gzip-only-text/html + BrowserMatch ^Mozilla/4\.0[678] no-gzip + BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html + SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary + + Header append Cache-Control "public" + Header append Vary User-Agent env=!dont-vary + + + PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGCatLoader" # 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.43.2