Hi, <br><br>One idea...<br><br>With nginx proxy_cache you can use &quot;proxy_cache_use_stale&quot; to tell it to return the last known copy of a cached file on given backend errors.<br>If you do that for 404 error for css_*.css &amp; js_*.js, it means that cached users will no longer be redirected to non existent css, instead they will be loading the css the page was using when it was cached.<br>
<br>Read more here: <a href="http://wiki.nginx.org/NginxHttpProxyModule#proxy_cache_use_stale">http://wiki.nginx.org/NginxHttpProxyModule#proxy_cache_use_stale</a><br><br>Best regards from Montevideo,<br><br>Guzmán<br><br>
<div class="gmail_quote">On Thu, Oct 14, 2010 at 2:15 PM, brianmercer <span dir="ltr">&lt;<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What is the preferred way to cache static files these days? (i.e.<br>
ccs/js)<br>
<br>
1. Recompile with slowfs module <br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2. Serve css/js through php backend and use fastcgi_cache<br>
3. Create additional nginx localhost server and proxy_cache from nginx<br>
backend<br>
<br>
Drupal6 has a nasty habit of recreating its aggregated css and js files<br>
(i.e. css_[md5hash].css) on module updates, etc.  Which means cached<br>
dynamic pages end up pointing to non-existent files.  An nginx cache<br>
could protect against that problem, but I&#39;m not sure of the best way to<br>
do it.<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,140660,140660#msg-140660" target="_blank">http://forum.nginx.org/read.php?2,140660,140660#msg-140660</a><br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Guzmán Brasó Núńez<br>Senior Perl Developer / Sysadmin<br>Web: <a href="http://guzman.braso.info">http://guzman.braso.info</a><br>Mobile: +598 98 674020<br>