-
Notifications
You must be signed in to change notification settings - Fork 2
Known issues
Yuri Voinov edited this page Jan 15, 2020
·
1 revision
KNOWN ISSUES
We know of several cases where websites are incorrectly set mime-type (for example, text/plain for videos or gzip-archives). In these cases, the adapter produces an erroneous compression of the content, because the content type is determined by the mime-type headers.
To prevent this behavior, we propose to add an access control list in squid.conf that prohibits compression for known extensions (or sites) that cause problems (we know how hard it is to convince site administrators that they made a mistake when configuring the server).
For example:
acl gzipmimes rep_mime_type "/usr/local/squid/etc/acl.gzipmimes"
acl nogzipext urlpath_regex "/usr/local/squid/etc/acl.nogzipext"
loadable_modules /usr/local/lib/ecap_adapter_gzip.so
ecap_service gzip_service respmod_precache ecap://www.thecacheworks.com/ecap_gzip_deflate complog=1 errlog=1
adaptation_access gzip_service deny nogzipext
adaptation_access gzip_service allow gzipmimes
acl.nogzipext contents:
\.(zip|gz|msi)