Main Topics
Browse All TopicsI'm confused. I put a meta tag in my page so that it would not cache but it did.
In reading more I see that I need to put the no caching in the header of my file.
How would I do that?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
an easy way to force the browser to obey your no-caching requests is to put it in the header itself...
i don't know what language you are using, but if you are using PHP, you would use the following at the top of your page (before anything is written to the browser)
header("Cache-Control: no-cache, must-revalidate");
if you aren't using php, let me know what you are using and i can sniff out a solution for ya.
-Chris
ie doesn't cache the content til it reaches a certain size.. so the easiest way to make sure the file does not cache is to put the no cache meta tag and the head element at the top of the page AND at the bottom of the page.
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</head>
<body>
..content..
</body>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</head>
</html>
engel32:
(a) HTML doesn't allow a <head> section after the body
(b) That isn't exactly logical.
Assuming the statement "IE doesn't cache content until it reaches a certain size" is true (I've never heard this before). Why would you want to make the file BIGGER when the object is PREVENTING caching?!
Anyway, as has been pointed out already, the use of <meta> for cache control is unreliable and http headers should be used instead.
lol. I've come across this before.. and in a support article from Microsoft itself, they say that putting a 2nd <head> section AFTER the body section will successfully prevent the page from appearing in the cache.
http://support.microsoft.c
<HTML>
<HEAD>
<META HTTP-EQUIV="REFRESH" CONTENT="5">
<TITLE> Pragma No-cache </TITLE>
</HEAD>
<BODY>
This is an example of where to place the second header section<br>
so that the "Pragama, No-Cache" metatag will work as it is supposed to.<br>
</BODY>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</HEAD>
</HTML>
(pulled directly off the linked page)
Business Accounts
Answer for Membership
by: vbandaruPosted on 2004-02-20 at 13:52:37ID: 10416422
Check this site out. There is a bug in IE.
om/default .aspx?scid =kb;EN- US; 234067
http://support.microsoft.c