From: Dan Wells Date: Mon, 23 May 2011 13:30:43 +0000 (-0400) Subject: Apply Apache file expiration to the current official Javascript content type X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=25ac4d46eb2c61d82f3ab0a34813140fd27d2679;p=evergreen%2Fbjwebb.git 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 --- diff --git a/Open-ILS/examples/apache/eg.conf b/Open-ILS/examples/apache/eg.conf index cb37134c4..6ea38a7b1 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" # ----------------------------------------------------------------------------------