views:

18

answers:

0

I was just wondering, it seems like a trivial thing, but the question arises, does the web server compute compression on files for every request that is made? if so, that would be hell CPU heavy as the site grows, what are the possible work arounds if that is the case?

I thought it would be nice to pre compress files and use some mod_rewrite to serve the .gz version when requested.

Any thoughts?