Jump to content
MakeWebGames

Stoping cache on a page?


Guest Anonymous

Recommended Posts

Guest Anonymous

Hey, well i have been trying to stop cache on one of my user authentication script but i have tried multiple ways, tried googled it.

stuff i have been trying stuff like ......

<?
header("Cache-Control: no-store, no-cache, must-revalidate"); 
?>

but got no where yet any one have an idea to have a no cache on a page?

Thanks.

Link to comment
Share on other sites

Guest Anonymous

Re: Stoping cache on a page?

Something like...

<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Fri, 1 May 2007 12:00:00 GMT");
?>

 

Right?

Link to comment
Share on other sites

Guest Anonymous

Re: Stoping cache on a page?

I used

header("Cache-Control: no-cache, must-revalidate");

header("Expires: Fri, 1 May 2007 12:00:00 GMT");

which works fine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...