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
www.cgiscript.net
FREE and Pro CGI/Perl Scripts
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.