RE: [PHP-WIN] Reload/refresh web page
| From: | Bill Bolte | Date: | Fri, 04 May 2007 15:30:49 +0000 |
| Subject: | RE: [PHP-WIN] Reload/refresh web page | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-27823@lists.php.net to get a copy of this message | ||
Do a search with AJAX CACHE ISSUE. There are tons of links and it seems
to be directed mostly at Internet Explorer.
At it simplest, when your user is getting sent back to the page to view,
make sure the URL has an extra value in the querystring (if you're
passing stuff back already) such as:
http://www.somesite.com/originalpage.php?random=nco8agoafnvpqfq4iu
You can generate an random value pretty easily - don't have any code
right in front of me at the moment.
-----Original Message-----
From: Alf Stockton [mailto:alf@stockton.co.za]
Sent: Friday, May 04, 2007 10:21 AM
Cc: php windows
Subject: Re: [PHP-WIN] Reload/refresh web page
Bill Bolte wrote:
> Aaah, so it's a caching issue then. Is that particular content using
> PHP's caching mechanism or is it simply the browser's cache settings
> mucking things up?
>
You are correct, it is the broser, and I have no control over which
browser they are using or how that browser is configured.
>
> AJAX techniques run into the browser cache issue all the time (not
that
> your doing anything with AJAX here). One way to get around this is by
> putting a random value in the querystring when calling a script by and
> HTTP JavaScript call. Maybe by borrowing this concept and put a random
> value in the querystring (that servers no purpose) will fool the
browser
> and load the new content.
>
Please tell me more. An example would be good, if you could.
--
Regards,
Alf Stockton www.stockton.co.za
You may be gone tomorrow, but that doesn't mean that you weren't here
today.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php