how to clear browser cache and history via javascript I found some links like:-
How to clear browser history oan clear cache?
how to clear browser hash history in javascript
but they do not properly described on how this can be achieved via javascript ( or jQuery)
I require this so that the user do not have to do a [Ctrl+F5] or manually clear cache and the most recent version of javascript file is loaded in the browser.
The main aim is to load the latest javascript files every time the user visits the website. My application in ASP.NET MVC based and javascript files are included in .csHtml file.
call window.location.reload(true)
for a ctrl+F5
from script. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With