How to fix the caching problem with IE 7



Caching Problem with IE 7.


Everything was working well untill, client found something that was seriously wrong with the site with regards to security.They logged in as admin, copied URLs for some add/edit pages, logged out and then logged in as a regular user. They were able to edit/add content as the regular user. It was working perfectly in mozila and Chrome.


We just added the below code, and this seems to have fixed the problem for IE7.

<HEAD>
<META HTTP-EQUIV="cache-control" CONTENT="no-store"/>   
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>

HappyCoding ! 😉

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: