Jump to content

[SOLVED] IE 7 caching problem


coderb

Recommended Posts

Hi All,

 

I've got a simple AJAX routine that populates an incrementing field based on a ddl selected item.

 

it works fine, but when I go back into the page, select the same item from the ddl, it should cause the field value to increment again, but IE 7 just uses the cached value - no doubt it assumes that because the selected value has not changed, I don't need a new result.

 

I thought that adding the following the parent page would do the trick:

 

this added before any html:

Header("Cache-control: private, no-cache");

Header("Expires: Mon, 26 Jun 1997 05:00:00 GMT");

Header("Pragma: no-cache");

Header ("Last-Modified: " . gmdate ("D, d M Y H:i:s") . " GMT");

 

this in <head> tag:

<META http-equiv="expires" content="0">

 

but still IE 7 does not work. Firefox, Opera and Safari are fine.

when I delete the IE browsing history, then try again IE increments the value correctly.

so how can I force IE 7 not to cache this value or not use the cached value?

 

thanks for any help..

 

Link to comment
Share on other sites

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.