We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Tech Helproom


It's free to register, to post a question or to start / join a discussion


 

Self refreshing web page


Awestruck

Likes # 0

How do I force a web page to refresh itself when a page is loaded from Favourites.
For example, say someone stores a page in Favourites. I then update some prices on that page and upload it to the host.
The visitor loads the page from Favourites and the prices are wrong because the old page
has been loaded from his hard drive instead of loading the new page from the web host's folder?
Awestruck

Like this post
Forum Editor

Likes # 0

<META HTTP-EQUIV="REFRESH" CONTENT="5">

and it will force your visitor's browser to refresh the page every 5 seconds.

Like this post
DieSse

Likes # 0

"For example, say someone stores a page in Favourites."

Favorites doesn't store web pages - it stores URLs - ie the link to a web page on the web.

What can happen is that if a user hasn't set the temporary internet files (ie the cache) to clear when the browser closes, then a page may be loaded from the cache rather than from the web.

FEs solution will work - just trying to explain how users really do get out of date pages.

Like this post
Awestruck

Likes # 0

Many thanks for your prompt replies folks.
I will add the meta information as recommended. Most grateful for the explanation about the cache, I had not under stood its significance before.
Have a great Christmas
Awestruck

Like this post
Forum Editor

Likes # 0

The visitor clicks on a favourite, and the browser loads the page from the computer's hard drive - if the cache still retains a copy of it. Many people set their browser options to refresh a page each time it's visited anyway, so they will always see the current version.

Like this post
Awestruck

Likes # 0

Hello Forum Editor
Thanks for confirming my interpretation of Favourites, I was convinced that some pages were retained on the hard drive because many of my Favourite pages are accessible off-line. Some are not, and these point to a URL as explained by DieSse.

I decided against using the refresh code as this surely gives an infinite loop? Not a good thing when the person is trying to buy somehing on a page that changes every 5 seconds (or have I misunderstood its behaviour?

Awestruck

Like this post
DieSse

Likes # 0

I don't want to start an argument here - but

Favorites ONLY stores the address of web pages (look at the properties of a Favorite and you'll see the address in Properties.)

The browser quite separately from this controls the cache - which has nothing to do with Favorites.

When a web page is called for, from any point (from Favorites, an embedded link, typing into the address bar, etc) then the browser first looks to see if the web page, or parts of it, are stored in the cache. If they are the browser uses that - if not it looks on the web (subject to some browser settings).

Yes - some of your Favorites may be found off-line, from the cache. That's only because you're not clearing the cache when your browser closes (you can - it's just a setting). It's NOT to do with your putting them into Favorites.

My point was merely to explain the mechanism - that it's not Favorites that control off-line availability of web pages, but the browser, via the cache (and various settings.)

Like this post
DieSse

Likes # 0

PS - it's often considered good practice to clear the Temporary Internet Files (the browser cache) when your browser closes.

It avoids problems like you describe (getting old web pages) - it deletes any malware stuff that creeps in under your protection - it stops the cache getting excessively big, which is never a bad thing - and generally avoids confusion about what's coming from where.

If you really want to store pages off line, for specific reasons, there is a proper mechanism for doing so (in Firefox I use Scrapbook).

Like this post
Awestruck

Likes # 0

Thanks DieSse
I understand the difference between the cache and Favourites but my point was that the page is on the hard disk. Few surfers would know about the cache so to all intents and purposes, they believe that the page came from the Favourites. You and I know it comes from the cache which is on the hard disk.
Awestruck

Like this post
DieSse

Likes # 0

OK - just making sure we all understood the why.

You could try using FEs suggestion (which does seem to be the accepted way of doing it) - but you don't need to set to 5 secs - you could try it set to much longer, just put in a different value.

Like this post
DieSse

Likes # 0

Here's some other ideas for you to look into

click here

I can't vouch for them, sorry.

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

45 Best Android games: top Android games for your smartphone or tablet in 2014 (24 are free!)

IDG UK Sites

How Apple, Adobe, Microsoft and others have let us down over UltraHD and hiDPI screens

IDG UK Sites

Do you have the X-Factor too? Mix Off app puts fans in the frame

IDG UK Sites

iPad Pro release date, rumours and leaked images - 12.9 screen 'coming in 2015'