Apply Apache file expiration to the current official Javascript content type
authorDan Wells <dbw2@calvin.edu>
Mon, 23 May 2011 13:30:43 +0000 (09:30 -0400)
committerDan Wells <dbw2@calvin.edu>
Mon, 23 May 2011 13:30:43 +0000 (09:30 -0400)
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 <dbw2@calvin.edu>

Open-ILS/examples/apache/eg.conf

index cb37134..6ea38a7 100644 (file)
@@ -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"
 
 # ----------------------------------------------------------------------------------