documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

Add fingerprints support #259

Closed astashov closed 10 years ago

astashov commented 10 years ago

@ajlai PTAL

You can turn it on by seeting 'fingerprints_enabled: true' in your assets.yml.

If it is enabled, when you package your assets, the fingerprint suffix will be added to them, and assets.yaml.lock will be created. Then, when the pages are displayed, the values from assets.yaml.lock will be retrieved to get the suffix for the asset.