House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Safari cache issue

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andrzej Michalski
08/26/2004 09:06 AM

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?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dick Applebaum
08/26/2004 10:50 AM

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 -----

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Gaulin, Mark
08/26/2004 09:59 AM

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?   _____  

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andrzej Michalski
08/26/2004 10:17 AM

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 -----    > _____  


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference