Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you clear the offline cache for web apps in Safari?

I know in Chrome you can clear offline apps by typing this address

chrome://appcache-internals/

Does safari 5.0+ have something similar?

Please note that CTRL+ALT+E will not remove offline web apps from the cache.

like image 646
Alex Nolasco Avatar asked Apr 10 '11 22:04

Alex Nolasco


People also ask

Can I delete Safari app cache?

Delete history, cache, and cookies To clear your history and cookies, go to Settings > Safari, and tap Clear History and Website Data.

Where is app cache in Safari?

To view the Site Cache Storage in Safari iOS, one needs to open the Settings on their iOS device and scroll down to Safari Browser. From there the users need to go to the advanced option and tap on Website Data to view the storage Details.

How do I clear the cache for a specific website?

Here's how to clear the browser cache for just one web page: Open the webpage you want to clear the cache for, and go into Chrome Developer Tools. That's CMD+Option+I on a Mac, and CTRL+Shift+I or F12 on Windows, Linux, and Chromebooks. Click Empty Cache and Hard Reload in the list of options, and you're done.

Does Safari clear cache automatically?

No. Safari Preferences, General, has the ability to select a few options in "Clear History," including daily and longer periods.


1 Answers

On OS X the Safari cache manifest database can be found in

/var/folders/XX/xxxxxx/-Caches-/com.apple.Safari/ApplicationCache.db

where X/x is random characters. (You'll find one set of random characters for each user on your computer; you only need to worry about the path that corresponds to your account.) Delete ApplicationCache.db and restart Safari. (The .db file will regenerate when Safari encounters a site with a cache manifest.)

The easiest way to get at this file is to run the following command in Terminal

defaults write com.apple.Finder AppleShowAllFiles YES

and then force a restart of Finder. When you're done run

defaults write com.apple.Finder AppleShowAllFiles NO
and restart Finder again.

I found the seed of this answer here.

like image 141
Earl Zedd Avatar answered Oct 19 '22 12:10

Earl Zedd