Question about Safari and it's Cache.

Discussion in 'macOS' started by mouthster, Aug 18, 2005.

  1. mouthster macrumors regular

    Apr 22, 2005
    I've searched all over Google for an answer, and all I can seem to find out is how to erase the cache from Safari.

    I'm working on a project and came across a site with some images I would like to use, I went back to the site and now it is down. I haven't quit my session since then and I think there is a good change the images are still in the cache. Is there anyway to "browse" Safari's cache , specifically for images?

  2. mcmillan macrumors 6502

    Jul 4, 2004
    Some browsers (not Safari) :( have a Work Offline button, so you only load pages in the cache. I don't think such thing exists in Safari, but you might want to look through User>Library>Cache>Safari to see if you find something. All the caches are .cache, and I don't know what app would read that. Sorry.. good luck anyway ;)

    EDIT: Actually Safari can read those .cache files, so you just have to get the file, and wish that the images are still there, cuz sometimes they're not
  3. TheMonarch macrumors 65816


    May 6, 2005
    Bay Area
  4. iMeowbot macrumors G3


    Aug 30, 2003
    The developer tools come with a nice little program for this kind of thing called DiskCacheInspector. There is a built copy at if you are in a hurry or don't have that installed.
  5. cooker47 macrumors newbie

    Mar 2, 2008
    Question about Safari and its Cache - DiskCacheInspector

    The URL listed is way old - I only find a .gif file there now, but ...

    If you have Xcode 2.4.1 installed the example project file is /Developer/Examples/WebKit/DiskCacheInspector/DiskCacheInspector.xcodeproj

    You can't run the ../Build/Release/ because it gives you 'You cannot open the application "" because it may be damaged or incomplete.'

    I was able to run it from Xcode and rebuild it too, but I was only able to get it to execute outside Xcode by using Finder to browse the package contents, and then dragging the executable /Developer/Examples/WebKit/DiskCacheInspector/build/Release/ into a Terminal window.

    The DiskCacheInspector is not a fully-finished application but it does show what the real file names of the Safari cache files are.

    I got interested in this to disassemble a .swf file to look at the contents.

    I used the swftools-0.8.1 package to extract what I wanted.
  6. frasus macrumors newbie

    Apr 22, 2008
    Is there anything like this that I could use to read cache when using Leopard OS
    have tried cachediskinspector using tiger & that would give me exactly what I need but don't think it has been updated for use on Leopard

    I need to be able to read something I saw on a website that has now changed
    I know the time & date I viewed it

    Really glad of any help you could give me
  7. donmei macrumors regular

    Mar 8, 2007
    they have copies of old instances of websites.

    Also, try going to google and selecting images.

    search on whatever topic you want, but with the condition of ( is the name of your site)

    It will pull pics it has from that specific site. You may find what you want.

    Also, (I'm new to mac) is there a google desktop for mac? If so that would find it.

    Finally what aobut spotlight?

  8. cooker47 macrumors newbie

    Mar 2, 2008
    Hi frasus,

    As you are on Leopard I can't help you directly with DiskCacheInspector cos I'm still on Tiger myself (stripes not spots), or at least I will be again in a day or. My hard drive crashed and first I have to do brain surgery on my Mac mini again.

    However, when it's back together (should be over the next few days) I could rebuild the application in Tiger Xcode and send you the package. It might still work on Leopard even tho' I guess the Frameworks (dependencies) may be be different. You'd have to try it, see my comments at the end of I had to rebuild the application and then locate the DiskCacheInspector binary in Finder and drag and drop it into a Terminal.

    There are some other tools you can use, which I found thru various Google search. For example, you might take a look at FileJuicer (see but it costs.


    M.C. (cooker47)
  9. frasus macrumors newbie

    Apr 22, 2008
    thanks for your replies

    I have tried filejuicer & emailed the developer but you can't actually find the info you need for a given time/date

    Really hope you don't think this is a frivolous reason for needing the info but I won an internet competition, saw "you have won" but lost the page before I could click through for the code I needed to claim prize. (this happened twice, so lost 2 prizes)
    Have phoned Virgin who were running the comp & they can give me prizes if I can tell them what the 2 images were on the page - I didn't see them before lost page.
    Same thing has happened to other people but because they were using pcs could search cache & find what matching images were & have claimed prize.
    I need to find exactly what was on the webpage at a certain moment, the images change constantly but when I look in activity it actually lists what those images were - that is what I need to find in the cache

    the cachediskinspector seems to do that in tiger

    Someone else suggested an sqlite? programme & have found one for macs but can't work out what you have to do - am a newbie, not a techie

    thanks again for taking the trouble to reply,
    think I may have to accept nothing I can do:(
    but I keep hoping
  10. cooker47 macrumors newbie

    Mar 2, 2008

  11. frasus macrumors newbie

    Apr 22, 2008
    Hi cooker47

    thanks for continued help, not had much success

    Followed instructions in read me dragged diskcacheinspect to terminal

    DiskCacheInspector opened the following

    Cache path: /users/sue/Library/Caches/Safari but listed no items
    is this because the path is incorrect? Is there a way to change the path - never used terminal before
  12. cooker47 macrumors newbie

    Mar 2, 2008
    Well, did the DiskCacheInspector window open up? It sounds as tho' it did.

    But if it didn't list any files then the named Safari cache location might be empty - you might have a look to check it - or it could it's listing the wrong location for Leopard, or else this Tiger DiskCacheInspector binary won't work on Leopard for some other reason.

    Did you install Leopard's Xcode? Try that and see if the DiskCacheInspector example is still there - it's in /Developer/Example/Webkit/DiskCacheInspector after you install Xcode on Tiger.

    Best regards,

  13. frasus macrumors newbie

    Apr 22, 2008
    The Diskcacheinspector window did open but the path it showed was /users/sue/Library/Caches/Safari is this the correct path in Leopard

    when I have checked it there are other folders, eg/users/sue/Library/Caches/Metadata/Safari/etc .
    Is there any way to change the path in Diskcacheinspector?

    Have installed Xcode but the Diskcacheinspector is not listed where you said.

    thanks for your continued help
  14. cooker47 macrumors newbie

    Mar 2, 2008
    Safari cache

    Hi again,

    1) The path looks correct, and as far as I know you cannot change it. If you navigate to this folder in a Terminal, it should be full of sub-folders containing files called <something>.cache. You can view the contents using vi and they contain timestamps in the form "Wed, 07 May 2008 04:24:46 GMT", which might be useful.

    2) With Tiger you have to select the Webkit examples by customizing the Xcode install.

    3) Perhaps more usefully, try When you unzip it, this version runs like a normal application. I still didn't figure out how to build it properly myself.

    4) You can also try the tool Retrospective from here:

    Good luck!
  15. frasus macrumors newbie

    Apr 22, 2008
  16. cooker47 macrumors newbie

    Mar 2, 2008
    Re. vi and DiskCacheInspector for Safari

    Hi frasus,

    1) "vi" is one of your basic UNIX editors - others prefer "nano" or "emacs". You run it from a command line in Terminal. But to try using that here would launch you on a whole new adventure full of different learning curves that you might prefer to avoid unless you need to learn about UNIX.

    2) Just to document it here, I found the cause of my problem 'you cannot open the application "DiskCacheInspector" because it may be damaged or incomplete'. See This is a bug dating back to 2006. The cause was simply that the original Info.plist file for the project incorrectly contained the string "DiskCacheInpector" (sic) for the CFBundleExecutable key instead of "DiskCacheInspector".

    Once again, good luck with your search,

  17. cooker47 macrumors newbie

    Mar 2, 2008
    DiskCacheInspector.Tiger.dmg - updated

    The .dmg file has now been updated so that the DiskCacheInspector application (Universal binary, not yet tested on Intel), can be started in the usual way, rather than having to drag it to a Terminal.


    Please can anybody let me know if this works on Leopard Intel and Leopard PPC.
  18. cooker47 macrumors newbie

    Mar 2, 2008

    Since May '08, I saw a few downloads of this file in my web server logs. Just for the heck of it, I downloaded it myself yesterday and found to my horror that somehow it still contained the original broken version of the .app.

    Anyhoo, I have now fixed that, so now it works on OSX 10.4.11 PPC without getting the error. An updated README.TXT file is also included.
  19. Mac1Lord macrumors newbie

    Apr 23, 2010
    Hi buddies, this post is old, but maybe some other users can be interested in SafariCacheExplorer. This app let you explore, extract and delete individual files from Safari's cache... (but is not limited to only Safari's cache... also can open any native mac os cache).


Share This Page