RE: [PHP] Re: Forcing page refresh with http headers?
| From: | Brendon Gearin | Date: | Fri, 07 Mar 2003 23:16:30 +0000 |
| Subject: | RE: [PHP] Re: Forcing page refresh with http headers? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138702@lists.php.net to get a copy of this message | ||
Can you use some kind of random url?
eg ?cachebuster=url encode the date and time here
its what i do to bust cache.
-----Original Message-----
From: Daniel Joyce [mailto:daniel.a.joyce@worldnet.att.net]
Sent: Saturday, March 08, 2003 7:18 AM
To: php-general@lists.php.net
Subject: [PHP] Re: Forcing page refresh with http headers?
Daniel Joyce wrote:
> I've used the HTTP Location, Expire, and Refresh headers to no effect.
> What's the magic order to....
>
> 1) Refer a browser to a new location
> 2) Ensure that the location is refreshed?
>
> I want to avoid using <meta http-equiv> tags, as this complicates things
> in the system I am designing....
>
> -Daniel
>
A little more explanation. I'm wanting to seperate form from content and
processing...
So page a.php has a form, that invokes b.php in it's action.
b.php redirects the browser to a new page to show that processing is
occuring, then redirects back to a.php when done. ( a.php is a query and
display front end, so you enter a query, and it should reload displaying
the results ).
No matter what I use, whether http headers, or session vars to tell it
to reload, when a.php is reloaded by the browser, it's somehow pulling
it from cache, and not requesting the page again. If I tell the browser
to refresh, then it displays the data.
I've tried cache control headers, etc, to get the browser to reload the
page, and it doesn't work...
-Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php