How to disable cache on IOS safari?

后端 未结 6 1187
广开言路
广开言路 2021-01-31 09:19

Is there a way to disable caching on ipad/iphone? I want to run some automated tests for non-cache experience.

6条回答
  •  心在旅途
    2021-01-31 09:29

    There is a way to effectively disable caching on iphone/ipad/IOS.

    Install Fiddler on a windows desktop, and allow remote computers to connect:

    enter image description here

    In IOS, setup a proxy under your wifi connection settings, pointing to to the IP address of the computer you are running fiddler on, and on port 8888 (assuming you haven't changed it from default in fiddler):

    enter image description here

    By now, fiddler should be intercepting all web requests your device is making.

    You can now disable caching from the Rules -> Performance menu in fiddler.

    enter image description here

提交回复
热议问题