|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Safari cache issue
Got a URL?Dick Applebaum 08/26/04 10:50 A Try adding this header (which is a real header, not a meta-equiv header)Gaulin, Mark 08/26/04 09:59 A Mark, you're a star! This works perfectly...Andrzej Michalski 08/26/04 10:17 A We have a CFMX application which employs a frameset. A main frame for the site and a sub frame which acts like a shopping basket. The idea is that the customer clicks on items within the main frame, which in turn reloads the sub frame. This action (via a url variable) allows us to append to a session array (a list of id's in the shopping basket) and so display a revised shopping basket with the appropriate items within it. This works very well in all the browsers that we've tested (PC IE/Netscape, Mac IE). However within Safari on Mac OSX (we're trying v1.1 on OS X 10.3) the sub frame misbehaves as it will use any opportunity to display a cached version. The sub frame is updated by a javascript line on the main page like this: top.subFrame.document.location.href=thisUrl; where thisUrl is the cfm page with its various URL params. In trying to solve this we have added the following META tags: <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="Mon, 26 Jul 1997 05:00:00 GMT"> <META HTTP-EQUIV="Last-Modified" CONTENT="<cfoutput>#DateFormat(now(), 'ddd, dd mmm yyyy hh:mm:ss')#</cfoutput> GMT"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, no-cache, must-revalidate, max-age=0"> <META HTTP-EQUIV="Cache-Control" CONTENT="post-check=0, pre-check=0"> but still to no avail! Anyone have any cunning suggestions? Got a URL? I use routinely use frame like this on Safari without problems Dick On Aug 26, 2004, at 6:06 AM, Andrzej Michalski wrote: ----- Excess quoted text cut - see Original Post for more ----- Try adding this header (which is a real header, not a meta-equiv header) <cfheader name="Cache-Control" value="no-cache"> Mark We have a CFMX application which employs a frameset. A main frame for the site and a sub frame which acts like a shopping basket. The idea is that the customer clicks on items within the main frame, which in turn reloads the sub frame. This action (via a url variable) allows us to append to a session array (a list of id's in the shopping basket) and so display a revised shopping basket with the appropriate items within it. This works very well in all the browsers that we've tested (PC IE/Netscape, Mac IE). However within Safari on Mac OSX (we're trying v1.1 on OS X 10.3) the sub frame misbehaves as it will use any opportunity to display a cached version. The sub frame is updated by a javascript line on the main page like this: top.subFrame.document.location.href=thisUrl; where thisUrl is the cfm page with its various URL params. In trying to solve this we have added the following META tags: <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="Mon, 26 Jul 1997 05:00:00 GMT"> <META HTTP-EQUIV="Last-Modified" CONTENT="<cfoutput>#DateFormat(now(), 'ddd, dd mmm yyyy hh:mm:ss')#</cfoutput> GMT"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, no-cache, must-revalidate, max-age=0"> <META HTTP-EQUIV="Cache-Control" CONTENT="post-check=0, pre-check=0"> but still to no avail! Anyone have any cunning suggestions? _____ Mark, you're a star! This works perfectly... > Try adding this header (which is a real header, not a meta-equiv > header) > > <cfheader name="Cache-Control" value="no-cache"> > ----- Excess quoted text cut - see Original Post for more ----- > _____
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||