Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-28-2005, 05:29 PM
WebProWorld Member
 

Join Date: Nov 2004
Location: Australia
Posts: 92
Milo RepRank 0
Default Refresh page automatically on arrival

Hi all,
Thought this would be a quick find, but have had no luck yet. I'm looking for a code (not meta) that refreshes the content of my page on arrival. We constantly update our homepage (daily, not every minute) with new products. Although not very often, we do have some of our shoppers ordering products that were taken down a while ago. I did find a meta code that can refresh the page constantly, but you have to specify increments and its continuous, I only want it done once. Also, further research of this meta code has shown that search engines don't like this code.
Any info will be helpfull.
Cheers.
Miles
Reply With Quote
  #2 (permalink)  
Old 01-28-2005, 07:33 PM
WebProWorld Member
 

Join Date: Sep 2004
Location: Idaho
Posts: 40
MHenscheid RepRank 0
Default

Are you using any server side code or just plain html?

The best way to do this is to ensure that the page does not get cached. Your solution of "refreshing once" is proablaby not the best way to do this and may be the cause of your not finding anything. Do a search for "prevent page caching" or something similar.

If you are using ASP, you can add a line to the top of the page:

Code:
<% Response.ExpiresAbsolute=#Jan 01, 1980 00:00:00# %>
There are other methods, to prevent caching. I think including Meta tags, but not content-refresh (or whatever it is).

If you REALLY have to do a new page load, you could do it like this (with either server side or client side script):
1) User comes to www.site.com/default.asp
2) Script checks for existance of query string with variable "time"
3) The first page view, the script will not find this variable
4) Redirect to www.site.com/default.asp?time=[currentTime]
5) Script now finds appropriate variable in the querystring and displays the page

This is almost the same as not caching, since the browser has never seen this page with [currentTime] in the query string.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

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

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


Search Engine Optimization by vBSEO 3.2.0