Monday, January 4, 2021

Require.js avoid caching

The caching is vigorous in the require.js. to bust this, the config can be supplied with cache busting params 


require.config({

    urlArgs: "bust=v2"

});


For e.g like this 



References:

https://stackoverflow.com/questions/8315088/prevent-requirejs-from-caching-required-scripts

No comments:

Post a Comment