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.
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
Post a Comment