Forcing reload/refresh?

  • gcote
  • Born
  • Born
  • gcote
  • Posts: 1
  • Loc: http://www.silk.net/RelEd/

Post 3+ Months Ago

Is there a simple and practical way of ensuring that return visitors to a specific web page on ones web site always see the updated page rather than the cached one.?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

I think this should work for you. I hope some can verify...

Code: [ Select ]
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">


EDIT:

It might be you need to include one, or both of these...

Code: [ Select ]
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
  • Cold Canuck
  • Proficient
  • Proficient
  • User avatar
  • Posts: 400
  • Loc: Michigan, U.S. of eh

Post 3+ Months Ago

digitalMedia wrote:
I think this should work for you. I hope some can verify...

Code: [ Select ]
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">


Code: [ Select ]
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">


iF memory serves, that meta directive applies to Netscape only....I may be wrong, but I remember having had issues with IE 5 still caching the file on-disk.
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

You should consider controlling cache by configuring your server to send appropriate headers. If this is not possible, the META http-equiv will do.

RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1, included a detailed section on cache control. Read section 14.9, Cache Control, for THE only reliable description of cache operations.

You should note that HTTP/1.0 caches might not implement Cache-Control and might only implement Pragma: no-cache (see section 14.32). Your server software should decided which cache control message to pass based on the protocol in use (another benefit of configuring this from the server-side.)

Hope this helps...

Rob

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 36 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.