在.htaccess文件中禁用Gzip压缩 [英] Disable Gzip Compression in .htaccess file
本文介绍了在.htaccess文件中禁用Gzip压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用以下代码,但我的网站仍使用gzip压缩:
I have tried using the following code but my website is still compressed using gzip:
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(html?|txt|css|js|php|pl)$$ no-gzip dont-vary
如何禁用gzip压缩?
How can I disable gzip compressions?
推荐答案
将此代码放在htaccess文件中并保存.它对我有用.已禁用gzip压缩.
Put this code in the htaccess file and save it.It worked for me.Disabled gzip compression.
RewriteRule ^(.*)$ $1 [NS,E=no-gzip:1,E=dont-vary:1]
谢谢
这篇关于在.htaccess文件中禁用Gzip压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文