You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am thinking about moving from require.js to $script as default script loader. Though, an option that I am currently missing is a way to easily 'cachebust' all scripts that are loaded by $script. Perhaps the following would be an option:
// In our staging and live env `app.cachebuster` holds the current rev number// and acts as global cachebuster. So it would be nice to do something like:$script.urlArgs('bust='+app.cachebuster);
Is this something that's on the roadmap already?
Update: I took the liberty to add it myself :)
The text was updated successfully, but these errors were encountered:
boye
changed the title
global cachebuster option
Feature: global cachebuster option
May 14, 2014
boye
added a commit
to e-sites/script.js
that referenced
this issue
May 14, 2014
I am thinking about moving from
require.js
to$script
as default script loader. Though, an option that I am currently missing is a way to easily 'cachebust' all scripts that are loaded by $script. Perhaps the following would be an option:Is this something that's on the roadmap already?Update: I took the liberty to add it myself :)
The text was updated successfully, but these errors were encountered: