Apache is not sending 304 response (if mod_deflate and AddOutputFilterByType is enabled)

This is a known bug in Apache. See Apache bug #45023, and summary of Apache 304 etags and mod_deflate. Rebuilding from svn will fix the issue. The resolution was to revert the change that appended “-gzip” to the etag. However, there are associated HTTP compliance problems. If you can’t rebuild Apache, there is a suggested … Read more

How can I get Apache gzip compression to work?

Try this : #################### # GZIP COMPRESSION # #################### SetOutputFilter DEFLATE AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip