Apply Apache file expiration to the current official Javascript content type
authorDan Wells <dbw2@calvin.edu>
Mon, 23 May 2011 13:38:22 +0000 (09:38 -0400)
committerDan Wells <dbw2@calvin.edu>
Mon, 23 May 2011 13:40:03 +0000 (09:40 -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 c7b8cdb..0b9933e 100644 (file)
@@ -74,6 +74,7 @@ ExpiresDefault A2592000
 ExpiresByType text/html A64800
 ExpiresByType application/xhtml+xml A64800
 ExpiresByType application/x-javascript A64800
+ExpiresByType application/javascript A64800
 ExpiresByType text/css A3000
 
 # ----------------------------------------------------------------------------------