 |
 |
Safari and caching
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2003
Status:
Offline
|
|
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
|
|
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)....
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2003
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|