Prevent and stop web page caching by browsers so that your updated pages are displayed.
prevent caching of web pages by browsers, stopping browser caching
Prevent caching of web pages by browsersGo to Prevent caching of web pages by browsersWeb design tips and tricksGo to Web design tips and tricksTips and tricksGo to web development Tips and tricksHomepage

Prevent caching of web pages by browsers

The web pages you view are stored by your system inside the cache directory. Now, when you view these pages again, the browser searches the cache, and if it finds the page there, it displays it immediately. This presents problems to web developers when they update a page since the visitors see an older version (that was stored in the cache) of the page.

To prevent this from happening set the expiration date in the past inside the <Meta>. Thus the browser reloads the page everytime the user visits.

Here is the code:

<META HTTP-EQUIV="expires" VALUE="Thu, 16 Mar 2000 
11:00:00 GMT">
<META HTTP-EQUIV="pragma" CONTENT="no-cache">


AddThis Social Bookmark Button


Page contents: Know how to prevent and stop caching by client browsers so that the latest web page content is displayed.

Page URL: http://www.webdevelopersnotes.com/tips/webdesign/ prevent_caching_of_web_pages_by_browsers.php3



Join Mailing List


Feedback/Questions




50+ web hosting FAQs

Search engine for your website

Free software from Google - The Google Pack Collection

Create your own search engine
Search WebDevelopersNotes.com