does Apache (Http-Webserver), when used with mod_cache and mod_deflate, cache the uncompressed source file and (and the compress it for every request) or does it directly save the compressed result in the cache and is therefore able to safe a lot of CPU-Resources as the file is only compressed once, when inserting it into the cache?

Thank your very much!! Jan

  • And additional - is this combination usually beneficial for overall performance? i.e. Is the overhead of having many variations of gzipped resources on disk less than the cost of gzipping on every request of resources? Oct 14, 2012 at 12:01

1 Answer 1


The cache filter saves the response after it's been compressed with mod_deflate.

Unfortunately with the default config using mod_disk_cache, you may find one cached resource per user-agent due to the Vary headers suggested by the manual.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy