My Webpage http://avocettechnologies.com/avocetiq/ works fine when it loads the first time but when i click refresh button or reload page it won't load fully(The into part the transition of mobile and stuff) specially in Chrome, if i press ctrl + f5 it'll work fine
so i want to clear cache whenever page refresh or reload is done or is there any better solution for this
i tried the following code but it keeps loading the page
<script> window.onload = function() { if(!window.location.hash) { window.location = window.location + '#loaded'; window.location.reload(); } } </script>
`
My Website is in angularjs
Thank You
默认情况下,reload()方法从缓存重新加载页面,但您可以通过以下方式强制它从服务器重新加载页面:
location.reload(true)
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.