Prevent browser cache

Read this tip to make your life smarter, better, faster and wiser. LifeTips is the place to go when you need to know about Tricks & Shortcuts and other Html topics.

How do I prevent browser cache on my pages?

Prevent browser cache

If you update you pages frequently, this trick is a must to ensure that your users see the most recent content. When someone views a webpage, thier browser will cache, or make a copy of, your page for faster loading on the next visit. To prevent this, add the following meta tag:

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

This, as with any meta tag, must be placed between the <HEAD> and </HEAD> tags.



8/25/2006 3:33:11 AM
Arvind said:

Sometimes this doesnt work. setting the "Expires" header to "-1" solves all the problems.


URL: (optional)


Not finding the advice and tips you need on this Html Tip Site? Request a Tip Now!

Guru Spotlight
Sherril Steele-Carlin