Viewing Force Refresh

Force Refresh



User: Michael M. one month ago
Is there a way to force browsers to refresh each time they visit your site? I frequently add/delete images from my gallery and want to make sure the page always reflects the most recent changes.
User: Roddy one month ago
Put a ? at the end of the URL.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: Michael M. one month ago
Thanks Roddy, I'll try it out.
User: Michael M. one month ago
Hmmm... must have done something wrong. This is what I used - https://mgmontgomery.com? Still had to manually refresh.
User: Charlie L. one month ago
Quote: Michael M. - 22/10/2019 19:20:29
Hmmm... must have done something wrong. This is what I used - https://mgmontgomery.com? Still had to manually refresh.


Have you tried adding in the following meta tag to force the page to refresh each time someone visits the page?

<meta http-equiv="refresh" content="0">

Best,
Charlie
User: Michael M. one month ago
Have not but I'll try it. Thanks again.
User: Roddy one month ago
Quote:
Have you tried adding in the following meta tag to force the page to refresh each time someone visits the page?

<meta http-equiv="refresh" content="0">


Setting the meta refresh to zero will cause the page to refresh constantly. You must enter a time in seconds and this time should be longer than any person would spend viewing the page.

Do you want the refresh for viewing web page changes or for the benefit of visitors?

Last edit one month ago

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: Roddy one month ago
I should have added the fact that the WW3 discourages the use of the meta refresh as it is confusing for visitors and can impair browser function.
Google advises us not to use it because it can interfere with the indexing of the page content.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: Michael M. one month ago
Hmmm... maybe I should just let visitors know that the images update from time to time and they should manually refresh the page to insure they are seeing the latest version.
Still, thank you so much for your advice/help.
User: Charlie L. one month ago
Hi Roddy. You are correct when I made my post suggestion. Thanks for clarifying on that issue. In my defense it was late at night when I initially replied to try and help.

Michael, another option to consider would be to force the viewer's browser to load the gallery site page from the web server instead of caching the gallery site page by adding in the following meta tags:

<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />

Setting the Expires to -1 tells the browser to always load the page from the web server. You also can tell the browser how long to leave a page in cache. Instead of -1, enter the date, including the time, that you would like the page to be reloaded from the server. Note that the time should be in Greenwich Mean Time (GMT) and written in the format, dd Mon yyyy hh:mm:ss.

The downside to doing this is that the page will always load as a new page from your web server, so page load time will take a hit, especially on mobile devices, since it would not be cached. Anyway, just another suggestion to consider. Not saying it's ideal but could be what you are looking for and worth a try.

Best,
Charlie


Post Reply
You must login or signup to post.