The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Page refreshing problem
Decky
post Aug 6 2017, 06:43 PM
Post #1


Newbie
*

Group: Members
Posts: 14
Joined: 5-August 17
Member No.: 26,472



My association website (http://www.nhoa.org.uk/) has pages that often need to be updated so that members can view the latest information (such as news and events). The problem is that members are still seeing the old page cached by the browser and don't realise that the page has been updated with new information. The address has web forwarding to the server at http://www.nhoa.hyperphp.com/home.html so even if they do refresh the page, with http://www.nhoa.org.uk/ in the address bar it always takes the reader back to the homepage without refreshing the page that was being read. To try and overcome this I've added a direct link under the menu to take the reader the server address so that pressing F5 refreshes the page being read without jumping to the homepage. This is far from ideal as members don't know when to click on the direct link and continue viewing the old cached data.

I need to implement a command in the coding to automatically refresh the page from the server address. I've been experimenting with <meta http-equiv="refresh" content="30"> but can't get it to work properly. If I set the content to "30" it waits 30 seconds before it's refreshed and the reader could have read the old data and gone by then. If I set it to less than that, say 10 seconds, it makes reading very difficult if they have a slow connection and the page keeps going off to reload every 10 seconds.

I ideally need something that will either force the browser to load the page from the server and not the cache (overriding the browser settings) or refresh the page once as soon as it has been loaded (or after a predetermined time) and then stop. Any suggests for achieving this will be greatly appreciated (I've done numerous searches online but everything seems to point to the above meta tag solution).

This post has been edited by Decky: Aug 6 2017, 06:59 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
Decky   Page refreshing problem   Aug 6 2017, 06:43 PM
pandy   There are server-side ways to control caching, but...   Aug 6 2017, 06:59 PM
Decky   Thanks Pandy. Yes it's a common problem and th...   Aug 6 2017, 07:24 PM
CharlesEF   Well, when I write code to make an AJAX call I alw...   Aug 6 2017, 08:01 PM
pandy   I already tried several pages. The same page reloa...   Aug 6 2017, 09:59 PM
Decky   Thanks Charles EF, I've never added a time que...   Aug 7 2017, 06:11 AM
pandy   Thanks Charles EF, I've never added a time qu...   Aug 7 2017, 07:01 AM
CharlesEF   Thanks Charles EF, I've never added a time qu...   Aug 7 2017, 10:48 AM
Christian J   My association website ([url=http://www.nhoa.org....   Aug 7 2017, 07:35 AM
pandy   I think he means the frameset is reloaded with hom...   Aug 7 2017, 07:41 AM
Christian J   I don't follow what you say about JS. Works f...   Aug 7 2017, 08:59 AM
pandy   This what I get from http://www.nhoa.hyperphp.com...   Aug 7 2017, 06:22 PM
Christian J   Must be something wrong with your browser's JS...   Aug 7 2017, 06:33 PM
pandy   No, it has always worked before. Must be something...   Aug 7 2017, 06:56 PM
Christian J   Did you load it first with JS, then without? If so...   Aug 7 2017, 08:18 PM
pandy   Yes, of course I did. Could be it. Still, must be ...   Aug 7 2017, 08:25 PM
pandy   Yes, you guessed right, I think. JS off and cookie...   Aug 7 2017, 08:30 PM
Decky   Goodness me there's a lot more going on here t...   Aug 7 2017, 10:07 PM
pandy   OK, then I think it's your host that injects t...   Aug 8 2017, 07:11 AM
Christian J   I tend to go for simple solutions Actually the c...   Aug 8 2017, 11:30 AM
Decky   Not sure if I follow Pandy, I don't have ads o...   Aug 8 2017, 08:16 AM
pandy   Exactly, I think the JS has to do with the ads. W...   Aug 9 2017, 01:17 PM
Decky   It's simple in that the alternative is to rese...   Aug 8 2017, 06:33 PM
Decky   I've used HyperPHP hosting service from when I...   Aug 9 2017, 02:00 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 05:21 PM