4 Replies Latest reply on Jul 23, 2018 11:56 AM by Nancy OShea

    Automatically show changes once set live...

    GrahamBedbrook Level 1

      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...

        • 1. Re: Automatically show changes once set live...
          Günter Heißenbüttel Adobe Community Professional

          This is not a Muse behaviour, it is the behaviour of your browser and its cache. If you don’t want this:

          • 2. Re: Automatically show changes once set live...
            GrahamBedbrook Level 1

            If I look at the BBC website that doesn't need refreshing....?

            • 3. Re: Automatically show changes once set live...
              Günter Heißenbüttel Adobe Community Professional

              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.

              • 4. Re: Automatically show changes once set live...
                Nancy OShea Adobe Community Professional & MVP

                Chrome is the most stuborn browser cache around.  When testing sites, I keep the developer console open (F12) and hit Network > Disable Cache.

                https://i.stack.imgur.com/Grwsc.png

                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 ##