如何在没有Clear browser> history的情况下清除ASP MVC中的JavaScript和CSS缓存?
There is no direct and easy of doing so. Closest I can think of would be is to use:
window.location.reload(true)
It will ignore the current cached items and will try fetching the new ones.
The better approach I can think of is about using a version number to the path or filename, like PATH?v=VersionNumber
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.