rstacruz / sinatra-assetpack

Package your assets transparently in Sinatra.
http://ricostacruz.com/sinatra-assetpack/
MIT License
542 stars 97 forks source link

Option for disabling "cache busting". #115

Closed theotheo closed 11 years ago

theotheo commented 11 years ago

Hi there. At first, thank you for your work, guys! So. Cache busting. I think it would be nice to have an option to disabling that. At development I use guard-livereload, so I have no idea how Guardfile should looks like to work together with "fingerprinting" files. Maybe someone could give me an (very useful, of course) advice? And sorry for my english. Feel free to blame on me :D.

j15e commented 11 years ago

SHA1 fingerprinting is added when using helpers, but you may also access assets without the fingerprints if you write the link manually instead of using the helpers.

For exemple, if you have /css/styles.4b394912e9f486980c222a6dd5071d25.css it is also served at the URI /css/styles.css as a fallback.