dallara Posted April 3, 2007 Posted April 3, 2007 I am not sure how to do this...........I have created a page that will be updated almost everyday for the next month. When folks visit the page I would like it to reload automatically so that they are able to get the updated page without only getting what is cached..........so I am wondering what codeing do I put in my source to make this happen. The page I am talking about can be found here: Nest box 2 page As always, thanks! Dallara ------------------------ GiffsFarm Quote
btrfld Posted April 3, 2007 Posted April 3, 2007 Hi Dallara. The Meta Refresh tag will do it for you. <!-- Refresh page after 0 seconds --> <meta http-equiv="refresh" content="0" /> h**p://en.wikipedia.org/wiki/Meta_refresh for information. Hope that helps. Quote
dallara Posted April 3, 2007 Author Posted April 3, 2007 (edited) Thanks Jim...........I only just thought about this since I went to the page on my address bar drop down and it had the previous info, I had to click "reload" for it to give what I had added this morning. I went ahead and added the meta code you replied with but it keeps trying to reload without stoping, so I changed it back. Thanks- Dallara Edited April 3, 2007 by dallara Quote
abinidi Posted April 3, 2007 Posted April 3, 2007 Dallara, You could create a script with a variable set to 0. When the variable is zero, the script would refresh the page, and then add one to the variable. Since the variable is no longer 0, the page would stop refreshing. Maybe not the best solution to your problem, but it is one that I think would work. Quote
TCH-Don Posted April 3, 2007 Posted April 3, 2007 You might try <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> or <meta http-equiv="Expires" content="-1"> just a guess. Quote
btrfld Posted April 5, 2007 Posted April 5, 2007 My mistake. The correct code is <meta http-equiv="expires" content="0" /> Sorry. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.