Jump to content

I think that IE is caching my pages. What are the correct headers to use


emehrkay

Recommended Posts

I never really understood setting headers, so I looked on php.net and came across this

 

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past

 

But IE is still caching. It is strange because when the page loads, it is designed to check the database and return the results. It is only showing the entries that were in the db when the page was first loaded into memory.

 

**The new data isnt even returned using a hard refresh (shift+refresh)!

 

Any ideas?

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.