From 98c499c99fbaef82de1d16dbbe80b39280743626 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 21 Mar 2011 14:11:21 +0000 Subject: [PATCH] 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 :) git-svn-id: svn://svn.open-ils.org/ILS/trunk@19825 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/apache/eg.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Open-ILS/examples/apache/eg.conf b/Open-ILS/examples/apache/eg.conf index 537baa4568..56ddea9674 100644 --- a/Open-ILS/examples/apache/eg.conf +++ b/Open-ILS/examples/apache/eg.conf @@ -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 -- 2.11.0