Hello everybody,
I currently have Nginx running as a reverse static proxy cache. I cache
CSS/JPG/JS file with proxy_cache directive. I’ve also cache purging with
ngx_cache_purge module ( FRiCKLE Labs / nginx / ngx_cache_purge
)
Now I would like to serve my CSS/JPG/JS gzipped. What do you think is
the best way to achive this ?
- Modify apache conf to serve gzipped file to Nginx
- Configure NGINX to serve gzipped version with HttpGzipStaticModule
Please consider that :
- I still want my CSS/JPG/JS to be cached by nginx
- I still want be able to purge CSS/JPG/JS from the cache by using
ngx_cache_purge module - I don’t want to overload the reverse proxy machine with gzip
operations so I was thinking about
http://wiki.nginx.org/HttpGzipStaticModule#gzip_static directives
Waiting for your hints
Ciao
–
Simone