Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-31-2001, 08:51 AM   #1
JW
Member (6 bit)
 
Join Date: Mar 1999
Location: Axton VA. USA
Posts: 51
smokin

Hi,

How do I get my web site to automatically refresh each time a visitor accesses my page, without the visitor having to click on the refresh button. we want our visitors to know when we've made changes and I'm afraid alot of them are not real web savy. Any help would be greatly appreciated.

jw
JW is offline   Reply With Quote
Old 01-31-2001, 09:30 AM   #2
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
When you say refresh automatically do you mean refresh from ur server as opposed to refreshing from a "stale" copy on their cache? Or do u mean like a refresh every 60 seconds or so? The second scenario would still involve a lot of refreshes from the cache.
The latter is achieved by using the META tags:
(META HTTP-EQUIV = "Refresh" CONTENT = "60; URL=http://www.yoururl.com")

The former scenario has a few more considerations, on the surface what you can do is put an expiration on your META tags, like
(META HTTP-EQUIV="Expires" CONTENT="Wed, 31 Jan 2001 12:01:00 GMT")
date format: per the RFC850 specifications - http://www.alternic.org/rfcs/rfc800/rfc850.txt


or use of META PRAGMA
(META HTTP-EQUIV="Pragma" content="no-cache")
Unfortunately though, the Pragma usage isnt supported and most new browsers keep caching.

HTTP 1.1 ( http://www.w3.org/Protocols/rfc2068/rfc2068 ) also stipulates teh usage of such equivalents as:
max-age=time in seconds
must-revalidate
no-cache
proxy-revalidate
public
s-maxage=time in seconds

Check out the cachenow campaign pages: http://vancouver-webpages.com/CacheNow/


If you are the webserver admin, you can achieve all of the above (and circumvent your website visitor's knowledge of browsing and caching) by server side scripting on your webserver. Its fairly straightforward, either in the conf files or writing CGI to achieve it. User server side mod includes like : http://httpd.apache.org/docs/mod/mod_include.html for apache
http://www.php.net/manual/function.header.php3 for PHP3/4
etc

Anyhoo this is a largish topic, but I might have already ventured of the very deep end. HTH
Cheers
Statica is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:23 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0