No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    HELP ! Clear cache after build on server centos

    Help
    2
    6
    546
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sylvain last edited by

      Hi, we facing a big problem after each time we rebuild our application build with quasar last version.

      The app file js and the runtime file js change properly but the older version still stay in cache client browser.

      I explain :
      First build make an app.0000000.js (for exemple) and a runtime.0123456.js

      The second make an app.000001.js and a runtime.654321.js

      But the two first version still loading in broswer (due to cache) so the client is stuck on a white page (because app.0000000.js still not exist it return an 404)

      How can we force to clear the cache ?

      In the index.html file of quasar we’ve adding this :

      <meta http-equiv=“cache-control” content=“no-cache, no-store, private, must-revalidate, post-check=0, pre-check=0”>
      <meta http-equiv=“cache-control” content=“max-age=0”>
      <meta http-equiv=“expires” content=“0”>
      <meta http-equiv=“expires” content=“Tue, 01 Jan 1980 1:00:00 GMT”>
      <meta http-equiv=“pragma” content=“no-cache”>

      1 Reply Last reply Reply Quote 0
      • S
        sylvain last edited by

        Thanks in advance

        1 Reply Last reply Reply Quote 0
        • rstoenescu
          rstoenescu Admin last edited by

          Hi,

          This is to be configured from the webserver, so look for your webserver configuration manual.

          1 Reply Last reply Reply Quote 0
          • S
            sylvain last edited by

            Hi, thanks for your reply, after each rebuild we deploy an .htaccess file for renforcing the control cache like this :

            <IfModule mod_expires.c>
            ExpiresActive on
            ExpiresByType text/html M0
            </IfModule>

            <IfModule mod_headers.c>
            <filesMatch “index.html$”>
            FileETag None
            Header unset ETag
            Header set Cache-Control “max-age=0, no-cache, no-store, must-revalidate”
            Header set Pragma “no-cache”
            Header set Expires “Wed, 11 Jan 1984 05:00:00 GMT”
            </filesMatch>
            Header unset ETag
            Header unset Last-Modified
            </IfModule>
            <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteBase /
            RewriteRule ^index.html$ - [L]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule . /index.html [L]
            </IfModule>

            Do we have to do the same in the .conf file in apache ?

            Thanks

            1 Reply Last reply Reply Quote 0
            • S
              sylvain last edited by

              In fact its the index.html file that is always loaded from disk so the index.html load old js file even if the cache-control is at no-cache

              So He load old app and runtime file

              More détail here : (i don’t konw how to insert image here) https://imgur.com/a/VD0g48H

              1 Reply Last reply Reply Quote 0
              • S
                sylvain last edited by

                No one ? 😞

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post