Chrome WON'T clear cache… ctrl + F5 doesn't seem to work either

后端 未结 16 1278
南旧
南旧 2020-12-14 00:05

I\'m working on a web project but I have this really annoying issue with my browser, Google Chrome... Every time I make changes on my website, my browser won\'t refresh and

16条回答
  •  天命终不由人
    2020-12-14 00:35

    I tried everything, even uninstalling Chrome itself. No luck. It turned out that it's caching using your Google account. I "solved" the issue by appending a random string to my .js filename.

    
    

    where the number is always different. You can use PHP or the bundler itself

    This forces the browser to load the "new" js file

提交回复
热议问题