Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > General Gambling > Computer Technical Help
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2005, 06:56 PM
Larimani Larimani is offline
Member
 
Join Date: Sep 2004
Location: UK
Posts: 40
Default HTML problem

I got a website with a NEWS page that I update daily. The problem is that you have to click on the refresh button of your browser to see the changes... I'm suspecting that most of my readers don't do that and end up reading out-of-date stuff... is there an HTML tag or something I can do so that the page is refreshed everytime someone views that page?
Reply With Quote
  #2  
Old 10-11-2005, 07:51 PM
StevieG StevieG is offline
Senior Member
 
Join Date: Jan 2003
Location: Baltimore, MD, USA
Posts: 157
Default Re: HTML problem

Put this tag in the <head></head> section of your page

<META HTTP-EQUIV=Refresh CONTENT="300;yourpage.name">

The 300 is the number of seconds to wait before refreshing
Reply With Quote
  #3  
Old 10-11-2005, 08:32 PM
Larimani Larimani is offline
Member
 
Join Date: Sep 2004
Location: UK
Posts: 40
Default Re: HTML problem

Does that mean that when the users go on the page it will take 300 secs before it refreshes?

I need it to refresh straight away (bypass the cache). And it only need to be refreshed once per visit...
Reply With Quote
  #4  
Old 10-11-2005, 08:58 PM
cgwahl cgwahl is offline
Member
 
Join Date: Nov 2004
Posts: 51
Default Re: HTML problem

Try this:

<font class="small">Code:</font><hr /><pre> // HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");
</pre><hr />


So, in your webpage just put this:

<font class="small">Code:</font><hr /><pre>&lt;?
header("Cache-Control: no-store, no-cache, must-revalidate");
?&gt;
</pre><hr />
And it should not store it in the cache...
Reply With Quote
  #5  
Old 10-12-2005, 08:56 AM
Link774 Link774 is offline
Junior Member
 
Join Date: Sep 2004
Posts: 22
Default Re: HTML problem

Here's an article on preventing caching: So, You Don't Want To Cache, Huh?
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.