Jump to content

Recommended Posts

<meta http-equiv="Pragma" content="no-cache" />

 

I have that in my header which works on pages that have my header included and have stopped IE from caching. I don't want browsers to cache my require() files. If I were to require('requirefile.php'); and type in the url browser localhost/requirefile.php it'll still show my information saved from the cookie even after I logged out until I open a new tab or window. This seems to only be happening with IE.

 

Anyways anything other than the meta to stop caching that I can add in my require files?

It was news to me too. In order to assure a non-cache, you'll need to add another meta tag:

 

<META HTTP-EQUIV="Expires" CONTENT="-1">

 

That sets an immediate expiration on the file. Thus it dies the moment is it born. Place it on your page in the same manner as above. Since you still have the 64k buffer problem to worry about, I would place it in both HEAD tag sections. Better to be safe than sorry. It should look like this:

 

<HTML>

<HEAD>

<TITLE>---</TITLE>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">

</HEAD>

<BODY>

 

Text in the Browser Window

 

</BODY>

<HEAD>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">

</HEAD>

</HTML>

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.