ded/script.js

Feature: global cachebuster option

Closed this issue · 1 comments

boye commented

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 :)

boye commented

this issue is solved with #67 and can be closed :)