Skip navigation

Temporaray defeat

2186 Views 7 Replies Latest reply: Apr 25, 2013 12:53 AM by TeenTitan RSS
WscottART Calculating status...
Currently Being Moderated
Apr 8, 2011 11:09 AM
So I have a unix command now that enables me to turn the web proxy 127.0.0.1 on and off in my lab. Very nice to be able to quickly control your lab environment;however, A few bright industrious students figured out that if they simply go to the history menu...Wala they still have web games cached.

So My question would be is there a command line that I can use in ARD to clear the cache or history?

Currently using the command "networksetup -setwebproxystate ethernet on" or "off" as needed atm.
Imac Intel Core 2 Duo 3.06 GHz, Mac OS X (10.6.4)
  • Matt Ramsay Level 1 Level 1 (90 points)
    Currently Being Moderated
    Apr 11, 2011 6:02 AM (in response to WscottART)
    The cache for Safari is stored at ~/Library/Caches/com.apple.Safari/Cache.db

    You can safely delete this file, as it will be recreated after you close/open Safari.

    Is Safari the only browser that you are using?
    XServe / MacBook / MacBookPro, Mac OS X (10.6.4)
  • Matt Ramsay Level 1 Level 1 (90 points)
    Currently Being Moderated
    Apr 14, 2011 9:35 AM (in response to WscottART)
    Any luck?
    XServe / MacBook / MacBookPro, Mac OS X (10.6.4)
  • Matt Ramsay Level 1 Level 1 (90 points)
    Currently Being Moderated
    Apr 15, 2011 7:52 AM (in response to WscottART)
    Try these commands via 'Send UNIX Command' as root:

    #Clear Safari Cache
    rm -R /Users/*/Library/Caches/com.apple.Safari

    #Clear Chrome Cache
    rm -R /Users/*/Library/Caches/Google/Chrome/Default/Cache

    #Clear Firefox Cache
    rm -R /Users//Library/Caches/Firefox/Profiles/.default/Cache
    XServe / MacBook / MacBookPro, Mac OS X (10.6.4)
  • Andy MacRae Calculating status...
    Currently Being Moderated
    Apr 16, 2013 3:09 AM (in response to Matt Ramsay)

    Firefox command has a couple of typos. Try this iinstead.

     

    #Clear Safari Cache

    rm -R /Users/*/Library/Caches/com.apple.Safari

     

    #Clear Chrome Cache

    rm -R /Users/*/Library/Caches/Google/Chrome/Default/Cache

     

    #Clear Firefox Cache

    rm -R /Users/*/Library/Caches/Firefox/Profiles/*.default/Cache

  • TeenTitan Level 4 Level 4 (2,410 points)
    Currently Being Moderated
    Apr 25, 2013 12:52 AM (in response to Andy MacRae)

    You may also want to consider the cache for flash

     

    Last time I looked, they were located in :

     

    /Users/*/Library/Caches/Adobe/Flash\ Player/

     

    flash cookies:

     

    /Users/*/Library/Preferences/Macromedia/Flash\ Player/

     

    Of corse the kids who are smart enough to look in the cache are also the same kids who are ushally smart enough to download the swf files , put the file on a flash drive, and then run the file when ever they want. Same thing with java.

  • TeenTitan Level 4 Level 4 (2,410 points)
    Currently Being Moderated
    Apr 25, 2013 12:53 AM (in response to TeenTitan)

    Last time I checked Java's cache was in:

    /Users/*/Library/Caches/Java/cache

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.