Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable all caching in Safari 13

When I toggle the disable resource cache in the network tab, the javascript and stylesheets are still loaded from (memory).

I'm using webpack-dev-server (via vue-cli 3) which uses ETag headers, so Safari should send a If-None-Match requests, but doesn't.
As a workaround i'm using production mode which generates unique urls, but i'd rather use development mode.

Is there setting or special key-combo to really refresh the page?

like image 529
Bob Fanger Avatar asked Oct 30 '18 10:10

Bob Fanger


People also ask

How do I stop Safari from caching?

If you haven't already enable the Develop menu on Safari, with Safari open use the menu to go to Safari > Preferences…. One the preferences window select the Advanced tab. At the bottom there is a checkbox to enable the Develop menu. To disable caching in Safari toggle the menu item under Develop > Disable Caches.

How do I stop my iPhone from caching?

Select the “Advanced” tab and check the “Show Develop menu in menu bar” option. Close the Preferences window. If you don't have the Menu Bar enabled, select the settings gear, then choose “Show Menu Bar“. Select “Develop“ > “Disable Caches“.


1 Answers

More than a year later, Safari still has the bug :-(

I did find a key-combo sequence:

  1. Clear the cache with: ⌘ Command + ⌥ Option + E
  2. Refresh the page: ⌘ Command + R

This is far from ideal and makes me wanting to avoid developing and testing in Safari.

like image 153
Bob Fanger Avatar answered Nov 15 '22 09:11

Bob Fanger