changeset 49:0c548d481c0a

Make sure that we compress JavaScript that uses the OTHER mime type
author IBBoard <dev@ibboard.co.uk>
date Sat, 01 Aug 2015 19:53:18 +0000
parents 546dfa011f58
children 9c0ed2404c59
files modules/website/files/zzz-custom.conf
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/website/files/zzz-custom.conf	Sat Jun 06 19:13:02 2015 +0000
+++ b/modules/website/files/zzz-custom.conf	Sat Aug 01 19:53:18 2015 +0000
@@ -11,6 +11,7 @@
 ExpiresByType image/gif "access plus 2 weeks"
 ExpiresByType image/png "access plus 2 weeks"
 ExpiresByType text/css "access plus 1 week"
+ExpiresByType text/javascript "access plus 1 month"
 ExpiresByType application/javascript "access plus 1 month"
 ExpiresByType application/x-javascript "access plus 1 month"
 ExpiresByType image/x-icon "access plus 1 month"
@@ -20,6 +21,7 @@
 	AddOutputFilterByType DEFLATE text/html
 	AddOutputFilterByType DEFLATE text/xml
 	AddOutputFilterByType DEFLATE text/css
+	AddOutputFilterByType DEFLATE text/javascript
 	AddOutputFilterByType DEFLATE application/xml
 	AddOutputFilterByType DEFLATE application/xhtml+xml
 	AddOutputFilterByType DEFLATE application/rss+xml