rstacruz / sinatra-assetpack

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

Assets which import files cached too aggressively #102

Closed rintaun closed 11 years ago

rintaun commented 11 years ago

When generating cache-breaking tokens for assets, only the parent file is taken into account. However, this means that in formats such as LESS and SASS, which enable users to import other files, the parent file is not cache-broken when imported files are edited. Ideally, editing any of the imported files should create a new cache-breaking token. #93 is one potential fix for this issue, though other improvements could potentially fix this as well.

j15e commented 11 years ago

Yep that is a know problem when using CSS preprocessors + asset manager, it is the same thing with sprockets except you may use a manifest to define dependent files which will trigger reload too.

JadedEvan commented 11 years ago

Any advice for a workaround of this issue? I'm utilizing foundation framework, which is import heavy. It hurts having to modify parent files to get the includes to refresh. A reset or refresh would be very welcome.

j15e commented 11 years ago

I think sass-rails fixes this issue for sprockets but not sinatra-assetpack, might have a loot at this.

j15e commented 11 years ago

Duplicated by #139, I am closing this one.

I do not have much time to maintain this gem anymore, if someones would like too keep up the work contact @rstacruz.