Green Felt News » How we hash our Javascript for better caching and less brea... - 0 views
-
Everything is cached so it only does the minification and hash calculations once per file. We’re obviously running FastCGI so the in memory cache goes across http requests. More importantly the js/ dir is statically served by the web server so it’s exactly as fast as it was before we did this (since we served the .js files without any preprocessing). All this technique adds is a couple filesystem stats per page load, which isn’t much.
-
Everything is cached so it only does the minification and hash calculations once per file. We're obviously running FastCGI so the in memory cache goes across http requests. More importantly the js/ dir is statically served by the web server so it's exactly as fast as it was before we did this (since we served the .js files without any preprocessing). All this technique adds is a couple filesystem stats per page load, which isn't much.