apache2 mod_deflate static content

Posted by rizen on Server Fault See other posts from Server Fault or by rizen
Published on 2010-04-11T22:01:42Z Indexed on 2010/04/11 22:03 UTC
Read the original article Hit count: 671

I have a server serving up a JS file a few million times a day using apache2. Some of my users would like the JS to be gzipped. Does anyone know how apache2 mod_deflate handles compression of static files? Will it compress the js for each request(in which case I'd be worried about cpu load)? If it does, is there a way to pre-compress the JS files so apache2 wouldn't have to do this for each file?

© Server Fault or respective owner

Related posts about apache2

Related posts about mod-deflate