I have minified all my js files using require, but require created a minified js file( main.min.js ) which keeps on loading every time page loads and it is slowing down my application. Is there any way i can locally store the minified file in the browser and use it rather requesting for the minified file every time page loads.
Asked
Active
Viewed 37 times
1 Answers
0
Is there any way i can locally store the minified file in the browser and use it rather requesting for the minified file every time page loads.
Yes. It's called a browser cache and it works without developer intervention (unless your server explicitly tells the browser to not cache it or if you use some sort of cache busting mechanism).