Jump to content

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


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

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.