| Syntax: | gzip_disable regex ... |
| Default: | |
| Context: | http server location |
| Appeared in: | 0.6.23 |
| Reference: | gzip_disable |
Disable gzip compression for User-Agents matching the given regular expression. Requires PCRE library. Introduced in Nginx 0.6.23.
You can use "msie6" to disable gzip for Internet Explorer 5.5 and Internet Explorer 6. "SV1" (Service Pack 2) will be ignored since Nginx 0.7.63.
Example
gzip_disable "msie6";
or
gzip_disable "MSIE [1-6]\.(?!.*SV1)";