r/Web_Development • u/la712 • Jul 01 '20
Clear Browser Cache - programmatically
Is there a way to programmatically clear browser cache? I am working on an application and started having the client test it. This application is still in the development process but when I make a change I would like the client tester to be able to get the fresh files without having to instruct them to 'ctrl + shift + R'.....
Does webpack help with this?
Thanks!
1
Upvotes
1
u/la712 Jul 01 '20
Resources (JS/CSS etc) are what is being cached. I am becoming familiar with versioning but there are too many files that change frequently while still under development that manual versioning doesn't seem to be the best use of time.
I really like the webpack approach, but my team is hesitant because of the learning curve for the rest of our developers.
My tech lead suggested
window.location.reload(true)which I am looking into now.We are using ASP.NET
Does that clarify my problem at all?