diff --git a/debian/templates/apache-shared.conf b/debian/templates/apache-shared.conf index e3ad79cc04..b9e3ce9b85 100644 --- a/debian/templates/apache-shared.conf +++ b/debian/templates/apache-shared.conf @@ -37,7 +37,7 @@ SetEnv PERL5LIB "/usr/share/koha/lib" # Compress content with type html, text, and css, ... AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml - AddOutputFilterByType DEFLATE application/javascript application/x-javascript application/json + AddOutputFilterByType DEFLATE application/javascript text/javascript application/x-javascript application/json DeflateCompressionLevel 9 diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index 49d466a7e2..c61bb87508 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -50,6 +50,7 @@ mod_gzip_item_exclude rspheader Content-Type:image/* mod_gzip_item_include file \.js$ mod_gzip_item_include mime ^application/javascript$ + mod_gzip_item_include mime ^text/javascript$ mod_gzip_item_include mime ^application/x-javascript$ mod_gzip_item_include file \.php$ mod_gzip_item_include mime ^text/html$ @@ -62,7 +63,7 @@ # Compress content with type html, text, and css, ... AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml - AddOutputFilterByType DEFLATE application/javascript application/x-javascript application/json + AddOutputFilterByType DEFLATE application/javascript text/javascript application/x-javascript application/json DeflateCompressionLevel 9 @@ -188,6 +189,7 @@ mod_gzip_item_exclude rspheader Content-Type:image/* mod_gzip_item_include file \.js$ mod_gzip_item_include mime ^application/javascript$ + mod_gzip_item_include mime ^text/javascript$ mod_gzip_item_include mime ^application/x-javascript$ mod_gzip_item_include file \.php$ mod_gzip_item_include mime ^text/html$ @@ -200,7 +202,7 @@ # Compress content with type html, text, and css, ... AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml - AddOutputFilterByType DEFLATE application/javascript application/x-javascript application/json + AddOutputFilterByType DEFLATE application/javascript text/javascript application/x-javascript application/json DeflateCompressionLevel 9