css - 404 errors after redeploy webapp minified (caching) -


i'm facing fallowing problem webapp: every time have redeploy (aws), page not load correctly first time because (i believe) local cache has js , css files corresponding deploy. i'm using angular backed java , serving spring boot.

this state page looks like

when foce re-download (ctrl + r, e.g.), works fine. in attempt fix added following meta index.html:

<!--setting content "0" tells browsers load page web server.-->   <meta http-equiv="cache-control" content="max-age=0"/>   <meta http-equiv="cache-control" content="no-cache"/>   <meta http-equiv="expires" content="0"/>   <meta http-equiv="expires" content="0"/>   <meta http-equiv="pragma" content="no-cache"/> 

which apparently did not work. can do?

maybe can cheat behaviour adding query files, somethink :

<script src="myscript.js?build=mybuildversion"></script> <link href="mystyles.css?build=mybuildversion" rel="stylesheet"> 

Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -