Use desktop webinspector to clear cache in mobile safari?

后端 未结 8 1639
悲哀的现实
悲哀的现实 2021-02-03 23:43

Is it possible to clear mobile safari cache using the desktop web inspector in Safari?

I know I can go to the settings in the iphone, but it\'s a bit of a hazzle and sin

相关标签:
8条回答
  • 2021-02-04 00:03

    Nothing here worked for me on iOs 11.4.1. After digging around in the network tab I found Command + K which is "Clear Network Items". I hope this helps someone.

    0 讨论(0)
  • 2021-02-04 00:04

    You can connect your iPhone to a MacBook via USB and use the Safari Web Inspector
    Once you are connected, you can use Develop -> Empty Caches.

    0 讨论(0)
  • 2021-02-04 00:08

    Well, there is an option for this in the Develop menu - however it doesn't appear to work.

    A simple way around this is to add a new parameter to your url
    eg. http://domain.com/testing.html?refresh=1

    (of course having the functionality working in Web Inspector would be better)

    0 讨论(0)
  • 2021-02-04 00:08

    Try Cmd+alt+R when iPhone is connected and your inspecting with developer mode. It worked for me!

    0 讨论(0)
  • 2021-02-04 00:10

    You can use Cmd + Option + R while in the developer tools web inspector to force mobile safari to reload its cache.

    I had another problem which was that Fiddler also has a cache. I also had to clear that as I was running the iPad through the fiddler proxy.

    Once I cleared the fiddler cache, and then used Cmd + Option + R, I could see the iPad requesting and receiving the new files.

    0 讨论(0)
  • 2021-02-04 00:10

    I'm using Safari 11.1 on a macbook, and using Web Inspector connected to an iPhone with iOs 11.2.6.

    From the Web Inspector, if I use the key board short cut: OPTION + COMMAND + R, it both clears the cache and reloads the page.

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