问题原文
原帖链接 · Amit Bera · CC BY-SA 3.0
I want to disable gzip compression in my site using htaccess.
I have the code below in htaccess:
php_flag zlib.output_compression off
But it is not working.
已采纳解答
原帖链接 · Clarkey · CC BY-SA 3.0
It's possible, but looks like it will disable gzip for the whole website.
Keep in mind that you are telling PHP not to gzip, but Apache may still be gzipping so this should sort it, but check Apache config.
RewriteRule ^(.*)$ $1 [NS,E=no-gzip:1,E=dont-vary:1]
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
