'Unexpected token <' on every new build of angular production PWA until site refresh

后端 未结 6 1368
夕颜
夕颜 2021-02-13 00:35

I know there are some similar questions like so unexpected token after angular 2 production build but it doesnt actually answer my question.

Basically I have an angular

6条回答
  •  感情败类
    2021-02-13 01:13

    Double check your cache headers. Chrome doesn't always listen to no-cache. If you've visited the site recently chrome will load index.html from cache. Causing the error.

    We've changed our index.html to no-store and that seemed to solve the issue. https://gertjans.home.xs4all.nl/javascript/cache-control.html

提交回复
热议问题