I'm playing around with this package of Sinatra and Coffeescript and can't seem to clear the asset pipeline. When I update backbone.js to the most recent version, the app (run with shotgun watch) continues to serve the version of backbone.js that I've just replaced!

I am sure there is a rake command or something to clear the asset pack, but I cannot find it in any of the documentation.

rake assets:clean is telling me that rake doesn't know that task.

没有正确的解决方案

其他提示

Seems like you aren't cache busting properly. Have you looked into using Sinatra Asset Pack for your asset management? It has support for coffescript and will automatically bust your cache so new changes will be recognized right away.

Another option is to just clear your cache with a hardreload, shift+f5 or clear it manually in your browser.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top