javascript - How to load requireJs file only once when a user login and prevent it from loading every time page re-loads -


i have minified js files using require, require created minified js file( main.min.js ) keeps on loading every time page loads , slowing down application. there way can locally store minified file in browser , use rather requesting minified file every time page loads.

is there way can locally store minified file in browser , use rather requesting minified file every time page loads.

yes. it's called browser cache , works without developer intervention (unless your server explicitly tells browser not cache it or if use sort of cache busting mechanism).


Comments