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

后端 未结 16 1262
南旧
南旧 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:33

    The only thing that worked for me was logging out of my google account. For some reason, being logged in to an account shared between various devices wasn't allowing the cache to purge properly. I tried clearing the browser cache manually, Using a 3rd party cache cleaner, flushing the DNS cache, checking the checkbox in dev tools to ignore cache, using an incognito window. Nothing worked! As soon as I logged out everything purged from the test device properly.

    0 讨论(0)
  • 2020-12-14 00:33

    In my case, none of the described solutions worked. I have Google Chrome version 71.0.3578.98 64 bit. However, playing around with Chrome controls I found this solution:

    1. Click on the 3 vertical dots on the top right corner of the browser
    2. Click on "More tools"
    3. Click on "Clear Browsing data..."
    4. Under the almost invisible "Basic" tab, change "Time range" to "All time"
    5. Uncheck "Browsing history", unless you want to clear this data too
    6. Uncheck "Cookies and other site data", this one is highly recommended, you probably don't want to lose your login names and passwords for all sites.
    7. Check "Cached images and files", this is what we want to clear
    8. Click the blue button "Clear data"

    That's all.

    0 讨论(0)
  • 2020-12-14 00:33

    It seems that CTRL+F5 is for Internet Explorer, and Shift+F5 is for Chrome.

    EDIT (Feb 21, 2019): With the more recent Chromes, I've switched to CTRL-Shift-R as this seems to be the official - and more reliable - behaviour.

    Another answerer pointed out that right-clicking the reload button gave the option, but this no longer seems to be the case (Version 72.0.3626.109).

    0 讨论(0)
  • 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.

    <script type="text/javascript" src="js/bundle.js?r=37173634873"></script>
    

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

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

    0 讨论(0)
提交回复
热议问题