Method To Prevent Safari 4.0  Webpreview Caching

This is an experimental technique to disable Safari 4.0 from generating standard, and Webpreview, caches. I am interested in feedback from brave souls :>)
It's best to use a test-bench OS. Don't use your everyday OS, or any drive you depend on.
Use 'Disk Utility' to 'Verify Disk,' and 'Repair Permission'. If you get the all-clear, move on. If not, please make necessary repairs (there are many posts on this site which cover repair and maintenance of the OS). When all is well, proceed.
Navigate to: ~/Library/Caches/
Delete the "com.apple.Safari" and "Safari" folders.
Close all open windows. Make sure the Safari application is not active.
Open the Terminal, located in the Utilities folder.
At the prompt, enter the following four listed command lines, +one at a time+, pressing the return key between each listing. Spacing is critical, so it may be easier to copy/paste the lines individually; remembering to press the return key between each entry, and also after the last command line is entered. This needs to be done exactly.
rm -rf ~/Library/Caches/Safari
touch ~/Library/Caches/Safari
rm -rf ~/Library/Caches/com.apple.Safari
touch ~/Library/Caches/com.apple.Safari
Quit Terminal.
Navigate to: ~/Library/Caches/
The Caches folder should now contain two, zero KB Documents, with the names "com.apple.Safari" and "Safari". They act as placeholders for the folders which were deleted earlier. The Safari application appears content with the substitutions.
Note: This is a speculative adjustment to the normal operation of Safari 4.0. Please, use it only on an OS you can risk, as the consequences of its use are currently unknown.
Special thanks to the Wikipedia community for the original inspiration :>)

Solution: If one checks all delete-options offered by 'Reset Safari', then selects 'Reset' (which I did during testing), the two placeholder files get deleted – and it's their original default forms which regenerate.
If, after making changes to Safari (through the Terminal), one never deletes either 'cache', then the placeholder files remain intact, and Safari does not write to them.
Both caches now appear to be off limits to Safari. CPU consumption is down, and web pages fly onto the screen. In this new state, Safari 4.0 still receives a 100% score on Acid3, and passes security scans at Symantec and Audit My PC.
I don't take any of this for granted. There's probably loads of issues still inherent in this 'fix,' but it was fun giving Safari a 20% speed boost.

Similar Messages

  • Prevent Safari 5.1 from adding to Top Sites

    Has anyone figured out a way to prevent Safari 5.1 from adding to Top Sites every time one looks at a webpage?  I have used Macs for 20 years and love them, EXCEPT that Apple doesn't give much control to the user.

    If, for some reason, you want to completely disable the Top Sites feature, use the following Terminal command copy and paste:
    defaults write com.apple.Safari DebugSafari5IncludeTopSites -bool FALSE
    Repeating with TRUE at the end will enable Top Sites again.
    I have not tested this,  but you can try it,  and report back on your success or failure. 
    Clear cache, clear history, reset and relaunch Safari.
    Of course there all alternatives if this command does not work.  See this thread:
    http://forums.cnet.com/7723-6126_102-399559.html

  • How can I import old Safari bookmarks from a cache

    I had a bit of data disaster when upgrading to Snow Leopard from Tiger. Lost my home directory, and now lost the backup too aaaaahhh.
    An older backup has what looks like Safari bookmarks in /library/caches/metadata/safari/bookmarks
    The files all end with a ".webbookmark" suffix
    when opened in TextWrangler they appear as below:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Name</key>
    <string>Spanish Tortilla Recipe</string>
    <key>URL</key>
    <string>http://www.spanish-fiestas.com/recipes/tortilla.htm</string>
    </dict>
    </plist>
    Can I import these into Safari somehow?

    You could try pasting them into the current Bookmarks.plist and save with Textwrangler. Not sure if it will work but that may be all you can do. Run plutil after to check for errors via terminal. Relaunch Safari.
    Current bookmarks:
    User/Library/Safari/Bookmarks.plist

  • When I try to exit a video on the internet I received a screen asking if I was sure I want to leave. It to not have a confirmation tag. But it has prevented Safari from shutting down. Now I can not turn off my Mac? How do I reset?

    When I try to exit a video on the internet I received a screen asking if I was sure I want to leave. It to not have a confirmation tag. But it has prevented Safari from shutting down. Now I can not turn off my Mac? How do I reset?

    What kind of videos are you watching? 
    You need to force quit Safari, but hitting Command-option-esc, and force quit Safari. 

  • Methods to prevent XSS

    Does anyone know of any methods to prevent Cross Site
    Scripting (XSS) in CF applications?

    jperez8770 wrote:
    > Does anyone know of any methods to prevent Cross Site
    Scripting (XSS) in CF applications?
    Turn on the "Enable Global Script Protection" XSS setting in
    the CF
    administrator.
    Never Trust unverified inputs form any client request, be it
    get|url,
    post|form or cookie to be output without protection in future
    responses.
    Use the urlEncodedFormat(), urlDecode(), htmlCodeFormat(),
    htmlEditFormat() and xmlFormat() functions to escape any
    untrusted
    content rendering scripting code as harmless text.

  • Why is my Safari saving cookies and cache for sites I didn't visit?

    Why is my Safari saving cookies and cache for sites I didn't visit?

    That is the nature of today's data-hungry internet. Sites you visit often partner with sites you don't visit for sharing info on its vistitors. You end up with cookies from the other sites.
    This may help: Open Safari Preferences and click the "Privacy" tab. Under the section "Block cookies and other website data," check the button labeled "From third parties and advertisers." Restart Safari.

  • Is there an alternative method to sync Safari bookmarks without using iCloud? I am running the latest versions of Mavericks, iOS and iTunes.

    Is there a method to sync Safari bookmarks from my Mac to my iPhone WITHOUT using iCloud?
    I am running the latest versions of Mavericks, iTunes and iOS.

    Hi Mary ..
    Afraid not but if you decide to use iCloud and you're iPhone is running iOS 8, (according to your profile), hold off until you can upgrade your Mac to Yosemite.
    Please read >  http://www.macrumors.com/2014/09/29/reset-all-settings-icloud-drive-bug/
    Apple - iCloud - Learn how to set up iCloud on all your devices.

  • Error Message Preventing Safari 7 Use

    I recently updated my software for my Macbook Pro to version 10.9.4. I tried to clean my Mac by deleting cookies, add-ons, and clearing the cache or whatever that is called. Now, as soon as I open Safari, I receive this error message multiple times, preventing me from using the app. The message continues to pop up in multiple windows and does not go away when I press "Ok" or exit the message. I am unable to do anything further with Safari and have to force quit the app. The message reads:
    To view the movie, open your browser in the 32-bit mode.
    1) in Safari, select Applications/Safari in the Finder and click more info.
    2) Ensure that Open in 32-bit mode is selected.
    3) Relaunch browser.
    However, I do not have a movie playing/a movie paused so I'm not sure why this pops up. I was able to follow the instructions of the pop up message and ensure that Open in 32-bit mode is selected; however, the message still pops up multiple times whenever I open Safari. I have to post this from Chrome because I cannot physically use Safari anymore. When I try to use chrome for watching shows or other things involving Java, it tells me I must download the player. Once I do that, nothing happens and I am not able to do anything with Chrome either. Please help me with the Safari issue.

    The Conduit plugin is malware, and the DivX plugins are crapware. All must be removed. I've never heard of "MoveNetworks Quantum Media Player," but that sounds like something you could do very well without.
    You may have installed the "VSearch" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Step 1
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    Step 2
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine item from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Internet criminal behind VSearch has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How can i see my safari 4.0.3 cache files in windows vista?

    Some days ago i saw some pictures of someone on facebook with my safari...
    Now i cant access this pictures cause they deleted it.
    In IE all i need to do is go to the folder "internet temporary files" and ill be able to see the pictures and save them.
    I can see the pictures in the History of the safari... but i want to save them.
    There is any way to do it? i cant find this cache folder...
    thanks,
    feldi.

    Up.

  • How do I prevent Safari from suggesting previously visited websites?

    Hi all, I am going nuts here!!
    How do I stop Safari on my ipad mini from suggesting a long list of old websites everytime I start entering a website ?
    Yes, I have cleared cache and I have cleared the history as well as the Cookies & Data in Settings.
    I have tried using Private Browser mode without luck.
    I do I stop this??!!!?
    I can of course completely wipe and reset the iPad, but thats no good as that will remove all my apps and everything.
    There´s gotta be a way to do.
    Also another question: When I first started the iPad Mini up, it somehow imported all my bookmarks from my windows machine..?!?!
    How is that possible? I never imported anything
    I don´t want that either ! And everytime I receive an SMS on my iPhone, everybody can read it on the iPad too. Incredibly annoying when your kids are borrowing it all the time.
    How do I stop these things from happening too?
    I want my iPad to be completely separed from all other devices and NOT get any kind of info. sync from any other devices.
    Anyone knows how to do all this?
    /Peter
    P.S. Oh, and another thing: I have a normal iPad too, but Safaris missing on it. How do I get it back? I thought you couldn´t delete it at all?? But if I do a search it doesn´t come up at all?!?!

    System Preferences...
    General
    deselect the option, "Restore windows when quitting and re-opening apps"
    This is a resume feature of Lion, where the system remembers all your open applications and windows ... If you're not used to it, it can be a bit jarring having everything load up automatically.

  • Safari 6 not using cached resources after restart

    I am trying to debug a strange cache control issue that appears to only affect Safari 6. I have been unable to replicate it using Safari 5, or other browsers such as Chrome, Firefox and IE8. I am using Safari 6.0.3 on MacOS 10.8.3
    Starting with a completely cleared cache, I make a request to a website. All the html and images etc are sucked down as normal. All images have a max age of 1 day in their cache control header.
    If I then make another request to the same page, everything works as expected. It pulls down only the html file, and uses the cached images.
    I then close Safari and re-open it, and make a request to the same page. This time, for some reason, it ignores the cache control directives of some of the images (seemingly randomly selected) and pulls down new versions. I have confirmed this by monitoring the apache access log of the website. I can also confirm that the images still exist in the cache (using SafariCacheExplorer), it's just that Safari decides not to use them. I've tested it on multiple websites, including apple.com.
    Has anyone else experienced this? Any help would be greatly appreciated.

    I haven't mucked about with SafariCacheExplorer, but this is a continuing problem on my end.  It's happening persistently on a forum that I run, but I've run it with other browsers on this machine and with other forum users on the same browser/OS, and I'm the one having problems.  I've disabled most of my extensions, but the issue persists.  It's a wee bit maddening.
    GFM

  • Prevent the browser to read cached Flash object

    I have a slideshow Flash object which pics filename are
    supplied by an .XML
    file created dinamically every time the page loads.
    Unfortunately the .SWF is always being read from cache even
    though the .XML is changed
    correctly. The Flash movie always shows the pictures loaded
    at start of the application.
    I am able to refresh the Flash movie if:
    - I restart the application;
    - I set the browser setting to check for newer version of
    stored pages to "every time";
    - after 5/10 minutes have elapsed from the last reloading
    (couldn't find a real pattern here);
    To prevent caching I have tried the following:
    - Added a random number at the and of the URL that calls the
    page (...&r=#rundomNumber()#)
    - Added <META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec
    1999 21:29:02 GMT">
    - Added <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    - Added <META HTTP-EQUIV="Cache-Control"
    CONTENT="no-cache">
    in various combinations.
    - Used <cfheader name="Expires"
    value="#GetHttpTimeString(Now())#">
    - Modified the param name="movie" to
    <param name="movie"
    value="Gallery.swf?id=#randomNumber()#" />
    or to
    <param name="movie"
    value="Gallery.swf?id=#randomNumber()#&xmlPath=gallery.xml&id=#randomNumber()#"
    />
    also
    Opening the Gallery.fla with Flash 2004 in the Component
    Inspector, parameter xml Path = gallery.xml changed to
    "gallery.xml?id=1"
    or
    "gallery.xm?Math.round(Math.random() * 99999
    all this to prevent the browser to read from cache and
    download a fresh copy from the server, but to no avail.
    Is there something else to be tried?
    Thank you for helping.
    ContiW

    Click in your page where you want the SWF to go, then select
    Insert > Media > Flash from the menu (or maybe Insert >
    Flash ... DWMX goes back a way).
    Charles Nadeau
    Dreamweaver
    Adobe Systems

  • Where is Safari's shortcut icon cache?

    I have created a web page with a "shortcut icon", that little icon to the left of the URL in the address bar. However, I didn't like the design and modified the icon.
    Now it seems impossible to make Safari understand that there is a new icon. I have emptied all caches I could think of, and I have deleted files manually from <myuser>/Library/Application Support and Preferences. Still that icon remains as it was.
    The problem is somewhere with my main user account. If I log in with a different MacOS account, the new icon is there in all its humble glory.
    Does anyone know where this kind of information could be stored?

    I have created a web page with a "shortcut icon"
    These icons are called "favicons". Sometimes, just clearing your cache and reloading your page will get your revised favicon to appear. Sometimes simply reloading the page will do it. The last time I worked on my favicon, reloading the page worked for me, but others have said it did not work for them.
    Deleting the icons cache is the most extreme measure, but will do the trick and the favicons will reappear as you visit web sites.

  • Safari 6.0 empty cache

    Does anybody know how to empty the cache in Safari 6.0, within the new OS. Used to be empty cache was a click under the Safari pull down menu. Now the 'empty cache' is gone. They have the 'reset Safari' click, but that is not what I want to do. Just empty the cache, if that is still possible. I can't think of a good reason why Apple will take this option away. Thanks.

    Enable the Develop menu in Safari Preferences > Advanced. The Empty Cache option will be there.

  • Did safari come without clear cache in the iOS 5?

    HI, I just  upgrade my ipad2 with its 5. But can't  find clear cache in safari...is it the latest update?

    Rachel65-
    Is the Cache the same as History?
    I found two ways to delete History.  One is to run Safari, click on the Bookmarks icon and select History.  Clear History is listed to the right of the History title.
    The other is using Settings.  Go to Settings-Safari-Clear History.  There is also an option to Clear Cookies and Data.
    Fred

Maybe you are looking for

  • Bing search is messing up my email

    everytime i pull up a tab bing search appears and i cant check mu aol emails cause it appears

  • Reading and processing high freq data in different processes

    I am trying to create a program to receive raw data from UDP - EGD protocol, process the raw data then write data to file. The max transfer rate is 100 Hz and when running at this frequency the program cannot seem to process the data quicly enough to

  • Can't download specific podcast episodes

    I'm a new Ipod Shuffle user, and I've found the podcast I want to get. I've gone to podcasts, found the location and there are several episodes available. If I double click the episode I want, it simply starts playing. If I single click it, how do I

  • Problems copying files to Flash Drive

    I have been having problems copying files in the Finder to a flash drive when total storage exceeds 1gb or so. I recently obtained a 4gb flash drive and tried to copy about 1.5gb of files and the copy process just stops. I have had the same problem w

  • Hp notebook 15-n051sm (F4C10EA) Touchpad buttons hard to press

    Hi, i bought Hp notebook 15-n051sm(F4C10EA) few days ago, from first moment noticed when you need to use touchpad buttons that they require quite good force for pressing them. It isnt issue if you use short period of time but for longer usability it'