How do I disable cache in Safari 11.0?

后端 未结 3 1419
粉色の甜心
粉色の甜心 2020-12-29 01:38

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?

相关标签:
3条回答
  • 2020-12-29 02:22

    From my testing on Safari 11.0.3, you should restart Safari after toggling "Ignore the resource cache when loading resources".

    0 讨论(0)
  • 2020-12-29 02:24

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


    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:

    • The setting appears to persist until manually disabled, even when quitting Safari.
    • Caching appears to be disabled for all pages, not just the inspected one.
    • Web Inspector didn't always need to be left open.
    • Resources served from localhost are sometimes still served from the memory cache, even if caching is disabled in the Network tab. Restarting Safari seemed to clear this behaviour.

    Safari Technology Preview Release Notes (Release 27)

    Browser Changes

    • Added a “Reload Page From Origin” alternate menu item to the View menu. This action reloads a page without using cached resources.
    • Removed the Option-Command-R (⌥⌘R) keyboard shortcut from “Enter/Exit Responsive Design Mode” and mapped it to “Reload Page From Origin” instead.
    • Removed the Disable Caches menu item in the Develop menu. The equivalent functionality is now available through Web Inspector’s Network tab.

    Web Inspector

    • Added “Disable Caches” toggle in the Networking tab that only applies to the inspected page while Web Inspector is open.

    Safari 11.1

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

    0 讨论(0)
  • 2020-12-29 02:27

    It looks like (according to the “Safari Technology Preview Release Notes”) that the only way is to open the “Web Inspector” and go the the “Network” tab, and click the small button to ignore the resource cache.

    0 讨论(0)
提交回复
热议问题