Sammy.js seems to be caching html templates used to load pages using context render
context.render(context.view('pages/new'), data)
Which is good in production setup. But during development it is pain to clear browser cache every time new.html is changed on the server.
Is there a way to disable all caching on Sammy.js ?
When you load a template into the context you can provide the option
{cache: false}
as the second parameter toload
method.http://sammyjs.org/docs/api/0.7.0/all#Sammy.EventContext-load