Not Modified hits

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
kodeking
-


Joined: 19 Jun 2003
Posts: 15

PostPosted: Tue Aug 12, 2003 6:14 pm    Post subject: Not Modified hits Reply with quote

Quote:

EDIT EDIT EDIT

Never mind, I had to reset my browser's setting.

EDIT EDIT EDIT


Can i make the server send a new page even if it thinks its unchanged. I have an index page that is never changed, but it uses include(); to use a page that is changed. The server is just sending a cached version of the old pages. Is it possible to turn this off?

Although now that i think about this, could it be the browser asking for a old version?
________
Hawaii Dispensaries
________
MARIJUANA TEST


Last edited by kodeking on Sat Feb 19, 2011 6:33 pm; edited 2 times in total
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Aug 13, 2003 1:35 pm    Post subject: Re: Not Modified hits Reply with quote

kodeking wrote:
Quote:

EDIT EDIT EDIT

Never mind, I had to reset my browser's setting.

EDIT EDIT EDIT


Can i make the server send a new page even if it thinks its unchanged. I have an index page that is never changed, but it uses include(); to use a page that is changed. The server is just sending a cached version of the old pages. Is it possible to turn this off?

Although now that i think about this, could it be the browser asking for a old version?

Usually in such a case, the server is not reposnsible. It is your browser that behaves "smartly" and refuses to get the page each time it is asked for. To force it, you should send some additional headers with your script (put this code snippet in the beginning of your script):

Code:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
                                                    // always modified
header("Cache-Control: no-store, no-cache, must-revalidate");  // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");                          // HTTP/1.0


This code is commented in the documentation of the header() command in the PHP official manual.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB phpBB Group