Not to take page from cache

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Not to take page from cache

Post by anjanesh »

Hello

Does any one know how to automatically refresh a web page when a person visits its again instead of taking it from the cahe ?
I tried :

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">


But it still takes it from cache sometimes.

Any suggestions ?

Thanks
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

meta refresh with a time of 0?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

No. Refresh of 0 will refresh it continously.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

check into the [php_man]header[/php_man] functions, there is a slew of them to pass for getting the browsers to not cache the page. One, off the top of my head is Expires and Date.
Post Reply