1. Technology

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

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


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

©2014 About.com. All rights reserved.