Use the human-friendly interval syntax for Apache caching
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 21 Mar 2011 14:11:21 +0000 (14:11 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 21 Mar 2011 14:11:21 +0000 (14:11 +0000)
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 :)

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19825 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/apache/eg.conf

index 537baa4..56ddea9 100644 (file)
@@ -93,11 +93,11 @@ Alias /updates/ "/openils/var/updates/pub/"
 # 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