How do I truly flush Safari's cache?
Solution 1:
In Safari, hold down down the ⇧ (Shift) key while clicking the refresh button. This will perform a “hard” refresh, which bypasses the local cache.
(To quickly clear the cache in Safari, hit ⌥+⌘+E, go to Privacy, and click “Remove All Website Data”.)
Solution 2:
When Safari doesn't clear cache:
Ensure that you have logged out of all webpages, and have closed all the Safari tabs.
Open Finder and select Go → Go To Folder... in Menu bar. (Alternatively, you can use the keyboard shortcut, Command + Shift + g.)
-
Copy and paste the following into dropdown:
~/Library/Safari/Databases
Delete all the contents that appear in that folder by highlighting all folders and right clicking and selecting Move to Trash.
Open Safari again and check that all item are now deleted.
-
If nothing appears when you search for the above criteria, please search
~/Library/Safari/Local Storage
and follow steps 4 & 5 above to delete all the contents.
Solution 3:
I had the exact same problem except I noticed that it was happening with other browsers too. As it turns out it was not Safari or OSX it was a cache created by the service provider.
To solve the problem I put code in my page to prevent it from being cached.
content="no-cache"
"Some people know about the browser caching, but still get taken aback by ISP caching. ISP caching works in much the same way as browser caching. Once you have visited a website your ISP may cache those pages so that they appear to load faster the next time you visit them. The main problem with this is that unlike your browser cache you can not delete these temporary files, instead you have to wait until your ISPs cache expires and it requests fresh copies of the files. This can be very frustrating if you are trying to develop or make changes to your website -- or even to look at new information."