Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CF SERVER PROBLEM - PAGES DOES NOT REFRESH

Status
Not open for further replies.

kingjjx

Programmer
Joined
Sep 18, 2001
Messages
181
Location
US
hey, im having problems with my CF Server (i think) .. Everytime I do changes to a page, it does not take effect ( you can not see the changes). Even if I refresh Internet Explorer... but when I restart the CF Server and then I refresh Internet Explorer, you can then see the new changes. Im not sure whats going on here and what the problem is.

Any advice anyone ?
thanks
 
it sounds like you are using session or application variables; anyway, whatever varables you have, use CFSET tag instead of CFPARAM to make sure that you have changed the acctual value of the variable Sylvano
dsylvano@hotmail.com
 
In the arrogant Microsoft tradition of thinking that they know what you need and thus atomatically do things "for" you whether or not you asked for it, Internet Explorer frequently does not re-query the web server when you refresh a page--it just reads from the cache. Netscape is much better in this respect -- you can hold down the shift key and click "Reload" to force the browser to do a GET from the web server. As far as I can tell, Internet Explorer has no such feature. To force IE to actually refresh the page, add this to the top of your page:
Code:
<HEAD>
  <CFIF REFindNoCase(&quot;MSIE&quot;, CGI.HTTP_USER_AGENT) GT 0>
    <META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>
  </CFIF>
</HEAD>
Notice that we only force &quot;no-cache&quot; if the browser is IE. If we do that with Netscape, the user won't be able to print the page as Netscape will have &quot;expired&quot; it.
 
Try checking your IE Cache settings:

1: Click on &quot;Tools&quot; of the top menu toolbar.
2: Go down the menu and click on &quot; internet options&quot;.
3: Then Click on &quot;delete files&quot; from the &quot;temporary internet files&quot; selection in the middle of the page.
4: Then click on &quot;settings&quot;.
5: Change the &quot;Check for newer versions of stored pages&quot; to &quot;every visit to the page&quot;.

- tleish
 
tleish's procedure will work -- for you. But it won't solve the problem for your users. Unless you are preparred to handle numerous and repeated support calls from every user (actually, only the ones who notice that the page didn't refresh), you'd be better off expiring the page explicitly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top