No one ?
Latest posts made by sylvain
-
RE: HELP ! Clear cache after build on server centos
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
-
RE: HELP ! Clear cache after build on server centos
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
-
HELP ! Clear cache after build on server centos
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.jsThe 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”>