Posts

Showing posts with the label nginx

How to disable the addition of “Vary: Accept-Encoding” to the output when using “zlib.output_compression=On”?

How to disable the addition of “Vary: Accept-Encoding” to the output when using “zlib.output_compression=On”? zlib.output_compression: Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output. In runtime, it can be set only before sending any output. You have maybe problem which is possible solve it by another way. – step Jul 1 at 5:51 1 Answer 1 At PHP documentation is exactly writen how it works. zlib.output_compression boolean/intege...