0

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.

k.p
  • 67
  • 10

1 Answers1

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

Community
  • 1
  • 1
Joseph
  • 117,725
  • 30
  • 181
  • 234