Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari caching issue



I have been working on a web script in Perl that allows students to login and schedule exams with our testing center.  The script is working for most browsers but will not work with Safari.  My management has made it clear that they want the script to work in Safari since it is the most common browser used by our department.  So far the script will allow the user to login and download the html for the first page.  However, when you click ‘next’ Safari loads the page from cache rather than getting the updated dynamic content.  I have added the normal Meta tags to prevent caching but it didn’t affect Safari (see below).  I also tried using content expiration via our web server software which didn’t help either.  Here are the Meta tags I have placed in the html being sent to the browsers:

 

<meta http-equiv="pragma" content="no-cache" />

<meta http-equiv="cache-control" content="no-cache" />

<meta http-equiv="expires" content="-1" /> 

 

I also tried sticking an additional ‘<head><meta http-equiv="Pragma" content="no-cache" /></head>’ in between the </body> and </html> tags as found as a recommendation on one of the sites that cropped up in my many Google attempts.  Has anyone else run into this problem and found a fix?  Any ideas would be greatly appreciated.

 

Eric

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.