[FX.php List] [OT] Cookies vs Post,
Cache Busting [Was: Those Whacky End Users]
Tim 'Webko' Booth
tim at nicheit.com.au
Wed Nov 28 15:29:20 MST 2007
I'll start a new topic (threaded mail reader...)
On 29/11/2007, at 9:07 AM, Glenn Singleton wrote:
> Webko,
>
> On a smaller system is there any benefit in using cookies over post
> variables ?
I use cookies to store stuff from that page, because I can write into
them on the fly using JavaScript (onClick etc) - when they change
pages, the cookie is written into Session variable, waiting for the
final pages...
>
>
> Also, how do you kill the web browser caching (cross platform) ?
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
For html cache-busting. Tested on:
Win XP - FireFox, IE6, IE7, Opera 5
Mac OS X - Safari, FireFox
Given that every browser implements this differently, you can probably
add in other meta-http headers that indicate it expired in 1970, or
was created in the future, but just those two seem to give me
acceptable results on the common browers
Cheers
Webko
More information about the FX.php_List
mailing list