Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

-Web site designers FAQ

HTML: How To...

Force page reload and/or block page caching. by MikeBarone
Posted: 21 Mar 01

There are a couple of ways to make sure the users see the latest content on your web pages. Refresh the pages at certain time intervals or block the browser from caching the web page, each time they return they will load the data fresh.

Do not allow the user to store the data in cache at all:

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

Add this between the <head> and </head> tag and the page will never be cashed in the first place.

Refresh the page after a certain time interval:

<meta HTTP-EQUIV="Refresh" CONTENT=300>

Add this between the <head> and </head> tag and the page will never be cashed in the first place.

Adding this tag will refresh the browser after 300 milliseconds. Change the number 300 to whatever you want.

This works well for pages that people will call up and stay on for long periods of time, if the content is updated frequently this will force a reload so they can see the content.

Word of warning, if you have a form on this page it will clear all the fields, users dislike that tremendously. I found that out the hard way.

Hope this helps.

+ + + + + +
Mike Barone
FREE and Pro CGI/Perl Scripts

FREE Scripts

Back to -Web site designers FAQ Index
Back to -Web site designers Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close