Page 1 of 1

How to Force a page refresh...

Posted: Sun Feb 27, 2022 8:43 pm
by Lasa
I have a page that gets changed a lot. Images get switched out left and right.
How can I force a page refresh from the website side, not user side.
I think I see how but not sure:
Go into page meg tags.
User defined.
add
<meta http-equiv="Cache-control" content="no-cache">
Is this enough to force the browser to see the latest and not use the cache image or pdf?

or does it need the following as well:
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />

Cheers,
Lasa

Re: How to Force a page refresh...

Posted: Sun Feb 27, 2022 9:43 pm
by BaconFries
They should work but have you tried them out yourself?

Re: How to Force a page refresh...

Posted: Sun Feb 27, 2022 11:24 pm
by Lasa
My problem is I see the images that have been changed but others are not.
So I assumed it was a cache problem.. so I tried it on my wife's pc and sure enough it doesn't show on hers either.
Cleared her chrome cache and its still showing a image name that does not exist anymore.
Lasa