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 > Developer Center > Safari and caching

Safari and caching
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2003
Status: Offline
Reply With Quote
Jul 21, 2003, 08:54 AM
 
Hi,
I am not sure whether this is a long-standing topic, but I am having serious problems with Safari and the way it caches information. I run an authenticated web application that uses cookies to keep track of selections made by a user. These selections pertain to the IDs of images that the user is interested in. One of the routines allows the user to make a PowerPoint presentation on the fly with these images. Well, the first time that a user makes a presentation, this works fine. The file downloads onto the desktop and is the correct presentation. But suppose the user makes a new selection of images and then tries to make a presentation again, Safari downloads the same file as before. This happened all the time. So I reset the cache in Safari and then ran the application again. Again, the first time it worked with a new set of images, but subsequently all the other files downloaded were the same as the first one.

Is this a bug or am I programming wrong? The app runs fine on IE 5.2.2 on Mac. I run Cold Fusion on my web server.

sunbomb
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Jul 21, 2003, 01:36 PM
 
what's your code look like or what's an address for the site (better yet, both).....?

without seeing anything, i would suggest adding a 'kill cookie' before you 'write cookie' or 'if cookie is written, kill, else....'

or switch to sessions (like a one-time cookie)....
     
sunbomb  (op)
Fresh-Faced Recruit
Join Date: Jul 2003
Status: Offline
Reply With Quote
Jul 23, 2003, 08:02 AM
 
Mike,
Thanks for the response. Unfortunately the site is not viewable outside of the environment I work in. The code is pretty convoluted, so showing it here would be messy. I wanted to know however, if people did have problems with Safari caching all the time. For example, in my application, I allow people to empty their list of selections, which means I kill the cookie. After they make a new set of selections and then want to view their new list, Safari takes them to the previous list of selections which they had just emptied. When the page is refreshed however, the new list is then shown. This should not happen, or at least is not an intuitive way of browsing.

sunbomb


Originally posted by mzllr:
what's your code look like or what's an address for the site (better yet, both).....?

without seeing anything, i would suggest adding a 'kill cookie' before you 'write cookie' or 'if cookie is written, kill, else....'

or switch to sessions (like a one-time cookie)....
     
Mac Elite
Join Date: Aug 2000
Location: Minneapolis, MN
Status: Offline
Reply With Quote
Jul 23, 2003, 09:02 AM
 
This only happens with safari?

Do you have a proxy server that may also be caching it? I've had trouble with that in the past (not your specific scenario, but with cached images that don't update unless EXPLICITLY reloaded).
     
Forum Regular
Join Date: Jul 2003
Status: Offline
Reply With Quote
Jul 24, 2003, 05:29 PM
 
Originally posted by sunbomb:
But suppose the user makes a new selection of images and then tries to make a presentation again, Safari downloads the same file as before. This happened all the time. So I reset the cache in Safari and then ran the application again. Again, the first time it worked with a new set of images, but subsequently all the other files downloaded were the same as the first one.
I've had similar issues with previewing web pages from GoLive (Safari 'refusing' to show the current page..continuing to show the previous page I previewed).

Other people have mentioned that it's a Safari cache issue..I reported my problem to Apple, and maybe you can report yours as well.

Today, Safari is previewing properly. Tomorrow...who knows?

axlepin
     
   
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 02:12 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