Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete ios simulator safari cache

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?

like image 679
Dan Avatar asked Oct 08 '17 03:10

Dan


1 Answers

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 ).

enter image description here

Seems to do the trick.

like image 190
WonsElom Avatar answered Sep 18 '22 22:09

WonsElom