如何删除iOS模拟器野生动物园缓存 [英] How to delete ios simulator safari cache

查看:80
本文介绍了如何删除iOS模拟器野生动物园缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在iPhone模拟器上测试网站,做了一些javascript更改,并且我的javascript文件正在从缓存中加载。

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.

我看到了旧的Safari浏览器Web检查器的版本文件,资源选项卡(在模拟器窗口上)以及网络调用的状态为304。
我已经在macOS Safari上禁用了缓存。
我已经尝试删除模拟器设置上的safari缓存。
模拟器外的Safari浏览器正在正确加载新文件(我清空/禁用了缓存)。

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

我正在使用Simulator(iOS中为10.0 SimulatorAPP-745.10) 10.3)来自Sierra上的XCode

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?

推荐答案

对于2018年以后使用的用户:如果已连接Safari,请单击网络选项卡,然后在顶行单击忽略缓存资源图标(位于导出按钮旁边)。

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

似乎可以解决问题。

这篇关于如何删除iOS模拟器野生动物园缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆