Kent J. Chen's WebLog

...information technology, internet, and random thoughts

Force the Browser to Get the Updated HTML page

We all experienced that if we updated one HTML page (.htm, .html) we have to ask other people to refresh the page to see the updated content.  So is there any way to avoid it so that people would see the up-to-date page everytime when they come to the site?  And, yes, it looks possible.  The simply reason why it happens is because when the browser finds out the page is basic .htm or .html page it would just searches the local cache first before pulling the data off the site.  The following article explains a pretty good way to control the browser cache by putting 2 lines of code in the HTML page.  It works like charming for me.

Print | posted on Saturday, May 27, 2006 2:21 AM |

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 8 and 7 and type the answer here:

Other Links

Follow me @twitter

My Recent Posts