How can I force a hard reload in Chrome for Android

后端 未结 21 1782
夕颜
夕颜 2021-01-29 19:31

In Chrome for desktop I have options in the dev tools to disable cache completely when dev tools are opened and I have the options to manually do a hard reload when long clickin

相关标签:
21条回答
  • 2021-01-29 19:53

    How to reset all data for a given URL / Website on Chrome Mobile for android:

    1 - Open the Chrome menu, and tap on the "i (info)" icon

    2 - tap "Site settings"

    3 - Tap the trashcan icon

    That's it, even the most deeply ensconsed service worker for that URL will now die.

    0 讨论(0)
  • 2021-01-29 19:54

    I know this is an old question, but I found that the accepted answer didn't work for me.

    An alternate solution would be to append the url with a new url parameter such as website.com?a=1, website.com?a=2, etc.

    If you have parameters already, of course, you would use an ampersand i.e. website.com?q=test&a=1

    0 讨论(0)
  • 2021-01-29 19:54

    As of 2018, from google help center (tested on Chrome 63) :

    1. tap on the three dots menu ;
    2. choose History > Clear browsing data ;
    3. if needed, choose the time period (above the checklist) ;
    4. uncheck all items but Cached images and files ;
    5. proceed with Clear data and confirm.

    As mentioned in another answer, incognito tabs are also of great use for development.

    0 讨论(0)
  • 2021-01-29 19:55

    If its just the matter of included files, just add version after the path (?v=12345678)

    <link rel="stylesheet" type="text/css" href="style.css?v=12345678" />
    

    Whoever loads the page again will see changes.

    0 讨论(0)
  • 2021-01-29 19:59

    I'm using window.location.reload(true) according to MDN (and this similar question) it forces page to reload from server.

    You can execute this code in the browser by typing javascript:location.reload(true) in the address bar.

    0 讨论(0)
  • 2021-01-29 20:00

    You can use the Request Desktop Site option from the app menu (to the right of the address bar) which will force the page to reload.

    Simply tap it, wait for the refresh, then deselect it.

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