[open-ils-commits] r19825 - trunk/Open-ILS/examples/apache (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 21 10:11:23 EDT 2011


Author: dbs
Date: 2011-03-21 10:11:21 -0400 (Mon, 21 Mar 2011)
New Revision: 19825

Modified:
   trunk/Open-ILS/examples/apache/eg.conf
Log:
Use the human-friendly interval syntax for Apache caching

Apache mod_expires has supported a human-readable syntax for defining cache
expiry directives for a long time. In this commit we simply convert the
existing defaults from the "Anumber_of_seconds" syntax to the equivalent
English syntax documented at
http://httpd.apache.org/docs/2.0/mod/mod_expires.html

Whether CSS _should_ have a cache lifetime of 50 minutes by
default is left to the subject of future commits :)


Modified: trunk/Open-ILS/examples/apache/eg.conf
===================================================================
--- trunk/Open-ILS/examples/apache/eg.conf	2011-03-19 14:36:35 UTC (rev 19824)
+++ trunk/Open-ILS/examples/apache/eg.conf	2011-03-21 14:11:21 UTC (rev 19825)
@@ -93,11 +93,11 @@
 # OPTIONAL: Set how long the client will cache our content.  Change to suit
 # ----------------------------------------------------------------------------------
 ExpiresActive On
-ExpiresDefault A2592000
-ExpiresByType text/html A64800
-ExpiresByType application/xhtml+xml A64800
-ExpiresByType application/x-javascript A64800
-ExpiresByType text/css A3000
+ExpiresDefault "access plus 1 month"
+ExpiresByType text/html "access plus 18 hours"
+ExpiresByType application/xhtml+xml "access plus 18 hours"
+ExpiresByType application/x-javascript "access plus 18 hours"
+ExpiresByType text/css "access plus 50 minutes"
 
 # ----------------------------------------------------------------------------------
 # Set up our SSL virtual host



More information about the open-ils-commits mailing list