Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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? – Nic Cottrell Oct 14 '12 at 12:01

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.