Copy link to clipboard
Copied
Is there a way to get my Muse website to always show the updated version without refreshing the page? When I do an update and republish, it doesn't show my changes unless I refresh the page. I often get asked by clients why I haven't made the changes requested, and I tell them to refresh and they show. However THEIR users will not know to do this...
This is not a Muse behaviour, it is the behaviour of your browser and its cache. If you don’t want this:
Copy link to clipboard
Copied
This is not a Muse behaviour, it is the behaviour of your browser and its cache. If you don’t want this:
Copy link to clipboard
Copied
If I look at the BBC website that doesn't need refreshing....?
Copy link to clipboard
Copied
Then do, what I have suggested.
Be aware, that PHP sites with a database backend offer more sophisticated possibilities as a static Muse site does.
Copy link to clipboard
Copied
Chrome is the most stuborn browser cache around. When testing sites, I keep the developer console open (F12) and hit Network > Disable Cache.
If you have a Linux/Apache server, you can set the caching directives inside the server's .htaccess file. Depending on your hosting plan, you may be able to do this from your server's C-Panel. If not, you will need to download the .htaccess file from your server with Filezilla or similar FTP client and ediit the with a plain text editor. Do not use Muse for this. When done, save the file and upload it to your root server (the same location as your index.html page).
Below is an example of what I use in the .htaccess file. Basically, most of what your site uses can remain cached for 1 year. The exceptions are things that change more often such as CSS (1 month) and content (2 days)..
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType application/vnd.ms-fontobject "access 1 year"
ExpiresByType application/x-font-ttf "access 1 year"
ExpiresByType application/x-font-opentype "access 1 year"
ExpiresByType application/x-font-woff "access 1 year"
ExpiresByType image/svg+xml "access 1 year"
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 year"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType text/javascript "access 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##