Deflate is not working for HTML-Files and JS/CSS with GETs
2 posts
• Page 1 of 1
- [email protected]
- Posts: 4
- Joined: 02 Mar 2015, 15:20
Deflate is not working for HTML-Files and JS/CSS with GETs
Hi there
We have some issues with deflate compression on our website. A lot if files will be compressed but four files will not. It seems the following files are actually not compressed:
HTML-File
JS-Files with GET-Paramters
CSS-Files with GET-Paramters
JS- and CSS-Files without GET-Parameters are zipped well.
Our Website:
https://www.bratschi-law.ch/en
Our htaccess:
# ------------------------------------------------------------------------------
# | Compression |
# ------------------------------------------------------------------------------
<IfModule mod_deflate.c>
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/html text/plain text/x-component text/xml
</IfModule>
</IfModule>
We have some issues with deflate compression on our website. A lot if files will be compressed but four files will not. It seems the following files are actually not compressed:
HTML-File
JS-Files with GET-Paramters
CSS-Files with GET-Paramters
JS- and CSS-Files without GET-Parameters are zipped well.
Our Website:
https://www.bratschi-law.ch/en
Our htaccess:
# ------------------------------------------------------------------------------
# | Compression |
# ------------------------------------------------------------------------------
<IfModule mod_deflate.c>
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/html text/plain text/x-component text/xml
</IfModule>
</IfModule>
Re: Deflate is not working for HTML-Files and JS/CSS with GE
Hello,
It might not be the answer you were looking for, but generally mod_deflate is not needed on IIS7 and higher as standard IIS Compression module copes with that perfectly well.
Unfortunately, the developer who created this module is no longer working with us, so it would be a little troublesome to identify the reason for your issue. Moreover, questions about this module are very rare, so I cannot refer to previous experience.
It might not be the answer you were looking for, but generally mod_deflate is not needed on IIS7 and higher as standard IIS Compression module copes with that perfectly well.
Unfortunately, the developer who created this module is no longer working with us, so it would be a little troublesome to identify the reason for your issue. Moreover, questions about this module are very rare, so I cannot refer to previous experience.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 23 guests