From 25ac4d46eb2c61d82f3ab0a34813140fd27d2679 Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Mon, 23 May 2011 09:30:43 -0400 Subject: [PATCH] Apply Apache file expiration to the current official Javascript content type At least on Ubuntu 10.04, Javascript files are generally delivered with a Content-Type header of 'application/javascript', not 'application/x-javascript'. This change applies the much shorter 18 hour expiration to the affected files, rather than allowing them to default to 1 month. Signed-off-by: Dan Wells --- Open-ILS/examples/apache/eg.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/examples/apache/eg.conf b/Open-ILS/examples/apache/eg.conf index cb37134c46..6ea38a7b15 100644 --- a/Open-ILS/examples/apache/eg.conf +++ b/Open-ILS/examples/apache/eg.conf @@ -97,6 +97,7 @@ 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 application/javascript "access plus 18 hours" ExpiresByType text/css "access plus 50 minutes" # ---------------------------------------------------------------------------------- -- 2.43.2