Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Cache vs. Cookies

Cache vs. Cookies
Thread Tools
Senior User
Join Date: Aug 2003
Status: Offline
Reply With Quote
Mar 15, 2004, 02:17 PM
 
Could someone please explain main differences between the function of cache and cookies. I have Safari enhancer set to de-activate my cache, but still it seems that certain web pages load slow, but then very fast on second try, why?. Also, I create new web pages, and upload them and have to refresh to see new version even though cache is deactivated ( and Safari cache folder is indeed empty)
     
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status: Offline
Reply With Quote
Mar 15, 2004, 02:22 PM
 
Cache: Stored images and raw HTML.
Cookies: Stored information (usually login-related) so that a webpage can "remember" you and alter it's functionality depending on what you have done.

I'm not sure about your uploading issue, but I have noticed that something even as low-level as SSH can take a really long time to connect the first time, but if I disconnect and reconnect, I connect almost immediately. It might be that your computer no longer has to do a DNS lookup.
     
kevs  (op)
Senior User
Join Date: Aug 2003
Status: Offline
Reply With Quote
Mar 15, 2004, 06:30 PM
 
thanks Turias.

What do you mean by alter it's functionality?

What does doing a DNS lookup mean?

Today when I went to one of my webpages it took a long time. Then I immediately clicked out of it, then went back to the page, and it came right up. What facilitated it coming up fast second time?

Any idea why I have to refresh to see changed pages even though cache is de-activated?
     
Mac Elite
Join Date: Apr 2000
Location: Los Angeles, CA
Status: Offline
Reply With Quote
Mar 15, 2004, 07:01 PM
 
DNS lookup means that your computer has to figure out what an address like "www.apple.com" is. Computers see things in numbers (binary, actually, but let's just say numbers for now), so something like "www.apple.com" has no real meaning to it. It has to do ask a Domain Name System (DNS) server to translate it to something it can understand. In this case, the DNS lookup returns "17.254.0.91" for "www.apple.com" (you can try this out using the Network Utility application in Applications > Utilities).

DNS lookups are "cached" (stored in memory for fast retrieval). That way, your Mac doesn't have to ask the DNS server to translate "www.apple.com" again, because it remembers it. This is one way to improve performance (which is what makes caches very important).

As to your browser cache, it works the same way: the browser "saves" the sites you visit in its cache (disk and/or memory), so that if you visit the same page again, the browser doesn't have to request it from the web server. Of course, its not as simple as this, but you get the picture.

Knowing that, you'll then know that "outdated" caches tend to be a problem, as you've experienced. Safari might still be caching the page in memory (which may not be deactivated), so a refresh forces an update of the page. One other possibility is that your Internet Service Provider may be transparently caching for you (that is, they have their own cache), which is common in some areas that have broadband/dialup services.
(Last edited by ginoledesma; Mar 15, 2004 at 07:06 PM. )
     
kevs  (op)
Senior User
Join Date: Aug 2003
Status: Offline
Reply With Quote
Mar 16, 2004, 02:46 PM
 
Thanks gino, great reply.
I de-activated my cache in Safari with safari enhancer, becasue I found without it de activated, it would spin on and on looking for site sometimes. Having it off, grayed out is way better.

but you explanations explains, perhaps why, I still have to refresh, something they could not even explain.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:07 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2