How to delete ios simulator safari cache

自古美人都是妖i 提交于 2020-01-14 07:27:12

问题


I'm trying to test a website on the iphone simulator, I made some javascript changes and my javascript files are being loaded from cache.

I see the old version files with safari web inspector, resources tab (on simulator window), also the network calls have status 304. I already disabled cache on macos Safari. I already tried deleting the safari cache on the simulator settings. Safari outside the emulator is loading the new files correctly (I emptied/disabled the cache).

I'm using Simulator (10.0 SimulatorAPP-745.10 with iOS 10.3) from XCode on Sierra

How do I delete or disable the simulator cache?


回答1:


For anyone coming in in 2018 : if you have a Safari attached, click on Network tab, then on the top line, "Ignore cache resources" icon ( just next to "Export" button ).

Seems to do the trick.



来源:https://stackoverflow.com/questions/46627175/how-to-delete-ios-simulator-safari-cache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!