문제

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