coolgamer48 Posted December 8, 2007 Share Posted December 8, 2007 Hey,I'm using the following code to prevent caching on two pages: //No caching header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); However, it only works with one of them. The source code of the two pages are almost completely identical (except one says: This is page 1, go to page 2, and the other says, this is page 2, go to page 1).I do believe that the page is indeed caching despite this code, but I do suppose it could be another problem (the site uses a 'user' cookie that I want to be loaded every time the page opens - but sometimes on page2, it says Hello guest even though I'm signed in, or Hello [user] even though I'm signed out.Can someone plz help, this is rlly bugging me. Link to comment Share on other sites More sharing options...
boen_robot Posted December 9, 2007 Share Posted December 9, 2007 Try out Fiddler to verify if the page is cached or not.Also ensure your browser doesn't have some sort of werid caching settings on. For example, using Firefox with Fasterfox may result in some sort of extra caching features. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 10, 2007 Share Posted December 10, 2007 You can also just clear the cache, load the page, and check inside the cache to see if it saved anything. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.