Best way to cache static files
brianmercer
nginx-forum at nginx.us
Thu Oct 14 20:15:00 MSD 2010
What is the preferred way to cache static files these days? (i.e.
ccs/js)
1. Recompile with slowfs module
2. Serve css/js through php backend and use fastcgi_cache
3. Create additional nginx localhost server and proxy_cache from nginx
backend
Drupal6 has a nasty habit of recreating its aggregated css and js files
(i.e. css_[md5hash].css) on module updates, etc. Which means cached
dynamic pages end up pointing to non-existent files. An nginx cache
could protect against that problem, but I'm not sure of the best way to
do it.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,140660,140660#msg-140660
More information about the nginx
mailing list