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

后端 未结 6 1587
半阙折子戏
半阙折子戏 2021-02-13 00:26

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:03

    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

提交回复
热议问题