How to disable cache on chrome for Android?

前端 未结 5 1823
南方客
南方客 2021-02-03 22:13

How to disable cache on chrome for Android?

I change my page content, and refresh the page, but the content still is old.

I have set the nginx c

5条回答
  •  眼角桃花
    2021-02-03 22:42

    This may not be the easiest way, but it will 100% work and should be part of your development setup anyway.

    Using Google Chromes web tools on Windows or Mac will allow you to do "remote debugging".

    1. Enable remote debugging on Android device through Developer Menu in settings.
    2. Connect phone to PC using USB
    3. Open Google Chrome and access the developer console (F12)
    4. Click on the three dots (top right) > more tools > Remote devices.
    5. Scroll down to select your mobile device, at this stage you should see all chrome instances open on your phone. Select the instance you wish to "force reload and disable cache" by pressing Inspect
    6. Another screen should appear allowing you to access the network tab and select "Disable Cache"

提交回复
热议问题