Page 1 of 1

Forcing Browsers to re-cache Site

Posted: Wed Feb 05, 2025 10:48 pm
by AurochsDesign
Need some help from you professionals! How do you solve the problem of users not seeing updates to your sites because their browsers have cached older versions? Is there any way to force site visitors to re-cache the site or just bypass caching all together?

Thanks very much for any help. Internet searches for this sent me in many directions and i just decided to pose the problem directly here.

btw.. very happy with the latest WYSIWYG version!

Re: Forcing Browsers to re-cache Site

Posted: Wed Feb 05, 2025 11:33 pm
by alan_sh
One of the commands in .htaccess can do that, I believe - as long as your web server is Apache compatible. I'm not sure, but I also think there's something for NGINX servers too.

For .htaccess, try this:

# DISABLE CACHING
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>

Alan

Re: Forcing Browsers to re-cache Site

Posted: Wed Feb 05, 2025 11:34 pm
by BaconFries
You can add the following code using Page Properties and inserting into Meta Tags>Meta Tags>User Define

Code: Select all

<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
Or via the use of .htacess
# DISABLE CACHING

Code: Select all

<IfModule mod_headers.c>
	Header set Cache-Control "no-cache, no-store, must-revalidate"
	Header set Pragma "no-cache"
	Header set Expires 0
</IfModule>
You can also enable cache busting (Available since WBB16)
viewtopic.php?p=447106#p447106

Re: Forcing Browsers to re-cache Site

Posted: Thu Feb 06, 2025 1:01 pm
by AurochsDesign
alan_sh wrote: Wed Feb 05, 2025 11:33 pm One of the commands in .htaccess can do that, I believe - as long as your web server is Apache compatible. I'm not sure, but I also think there's something for NGINX servers too.

For .htaccess, try this:

# DISABLE CACHING
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>

Alan
Thank you!

Re: Forcing Browsers to re-cache Site

Posted: Thu Feb 06, 2025 1:02 pm
by AurochsDesign
BaconFries wrote: Wed Feb 05, 2025 11:34 pm You can add the following code using Page Properties and inserting into Meta Tags>Meta Tags>User Define

Code: Select all

<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
Or via the use of .htacess
# DISABLE CACHING

Code: Select all

<IfModule mod_headers.c>
	Header set Cache-Control "no-cache, no-store, must-revalidate"
	Header set Pragma "no-cache"
	Header set Expires 0
</IfModule>
You can also enable cache busting (Available since WBB16)
viewtopic.php?p=447106#p447106
thank you !!