1. Computing

Discuss in my forum

Force Your Page to Always Load from the Server Not the Web Cache

Why Won’t My Page Display As I Wrote It?

By

If you are concerned about your web pages caching for your readers, there is a way to tell their browsers to not cache a page, or indicate how long the browser should cache the page. This way, you can control how the browsers display your pages.

You can control the browser cache with a meta tag:

<meta http-equiv="expires" content="0">

Setting the content to "0" tells the browsers to always load the page from the web server. But you can also tell the browsers how long to leave a page in cache. Instead of "0" you write the date, including time, that you would like the page to be reloaded from the server. Note, the time should be in Greenwich Mean Time (GMT) and written in the format Day, dd Mon yyyy hh:mm:ss. Like this:

<meta http-equiv="expires" content="Thu, 19 Oct 2000 00:00:00 GMT">

Current Web Design / HTML Articles

  1. About.com
  2. Computing
  3. Web Design / HTML
  4. Web Server Management
  5. Caching
  6. Force Pages to Load From the Server Using Meta Tags

©2014 About.com. All rights reserved.