Enable asset pipeline MD5 hashing in development

Thursday, July 3rd 2014

There might be times where you want to test out how the hashing and cache busting of your asset files might effect things in your app. For me I needed to check if my localStorage caching of font style sheets would work like I expect.

It's not that hard to enable this in development. You just need to set a couple of flags in your config/environments/development.rb file.

config.assets.compress = true
config.assets.compile = true
config.assets.digest = true

Then restart your server. Now you should have nice MD5 hashed file names!