PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

Browser cache not clearing with dev build

Open gaurav2887 opened this issue 10 years ago • 1 comments

I am using devtool: cheap-module-source-map in my dev build as mentioned in this project.

Every time I deploy the app to aws, it requires me to do CTRL+F5(full cache refresh) on the browser and it does not pull latest changes on normal page refresh (F5). Is there any way to refresh the cache on F5 as users might not do CTRL+F5 in prod and will have issues.

gaurav2887 avatar Oct 01 '16 00:10 gaurav2887

The browser caches resources by default; also the HTTP Server sends information regarding the caching behavior in the browser. You should version your resources ?v=12345, so that the browser fetches the most recent version and does not caches. Btw. you should allow to cache things, it's a better UX.

katallaxie avatar Oct 01 '16 10:10 katallaxie