WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-11-2004, 05:38 AM
WebProWorld Pro
 

Join Date: Jul 2004
Location: Vancouver BC, Canada
Posts: 180
zwickes RepRank 0
Default How do I force the page to refresh from the server?

Hi,

I want my page to refresh from the server every time - but somehow it still seems to get cached.

I have the following HTML:

<META http-equiv=expires content="Wed, 14 Jul 2004 00:00:00 GMT">
<meta http-equiv="Pragma" content="no-cache">


What else do I need to force a refresh?

TIA.
Reply With Quote
  #2 (permalink)  
Old 11-12-2004, 01:40 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

I usually find that the best (and often only) way to get a true refresh is to use server-side code to prevent caching.

Here's an ASP sample:
Code:
Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
Reply With Quote
  #3 (permalink)  
Old 11-21-2004, 12:34 PM
WebProWorld Member
 

Join Date: Mar 2004
Location: USA
Posts: 38
bmiller011 RepRank 0
Default

I also have a page that I need to be refreshed each time it is opened. Could someone go into depth as to how to do this. I am a newbie and don't have any what to do.

Thanks

Bman
__________________
He that walketh with wise man shall be wise; but a companion of fools shall be destroyed.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0