问题
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