如何在Safari 11.0中禁用缓存? [英] How do I disable cache in Safari 11.0?

查看:739
本文介绍了如何在Safari 11.0中禁用缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天将Safari更新到11.0,并且缺少禁用缓存"菜单项(在开发"下).有人知道实现此目的的新方法吗?

I updated Safari today to 11.0 and the 'disable cache(s)' menu item (under Develop) is missing. Anyone know the new way to effect this?

推荐答案

由于 Adam回答了有关禁用的信息缓存添加到发行说明中,并且我已经相应更新了答案:

As Adam has answered there was information about disable caches added to the release notes, and I've updated my answer accordingly:

  1. 一次性使用,您可以在页面上使用 R 从原点或 R .
  2. 对于更永久的解决方案,您可以通过打开Web Inspector然后转到网络"选项卡并设置右上角的图标(它处于活动状态时变为蓝色).
  1. For a one-off, you can use R on the page to reload from origin or R from Web Inspector.
  2. For a more permanent solution, you can tell Safari to ignore cache when loading resources by opening Web Inspector then going to the Network tab and setting the icon in the top right (it turns blue when active).


尝试使用选项,它的行为似乎与发行说明中记录的一样:


After experimentation with the option in the Network tab, it doesn't appear to behave as documented in the release notes:

  • 即使退出Safari,设置也会一直保留直到被手动禁用.
  • 似乎所有页面都禁用了缓存,而不仅仅是检查过的页面.
  • Web Inspector并不总是需要保持打开状态.
  • 即使仍在网络"选项卡中禁用了缓存,有时仍会从内存缓存中提供从本地主机提供的资源.重新启动Safari似乎可以清除此行为.
  • 在查看"菜单中添加了从原点重新加载页面"备用菜单项.此操作将在不使用缓存资源的情况下重新加载页面.
  • 从进入/退出响应式设计模式"中删除了Option-Command-R(⌥⌘R)键盘快捷方式,并将其映射到从原点重新加载页面".
  • 删除了开发"菜单中的禁用缓存"菜单项.现在,可以通过Web Inspector的网络"标签使用相同的功能.
  • 在网络"选项卡中添加了禁用缓存"切换,该切换仅适用于在打开Web Inspector时被检查的页面.

在Safari 11.1中,图标的外观略有变化:

The appearance of the icon has changed slightly in Safari 11.1:

这篇关于如何在Safari 11.0中禁用缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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