Is this a good method for template cache busting in angular?

前端 未结 1 494
傲寒
傲寒 2021-01-05 06:51

I\'m trying to implement some cache busting on my angular application in a way that it will still allow caching but break it anytime we push new code to production. My setup

相关标签:
1条回答
  • 2021-01-05 07:55

    I think a popular approach is to use something like ng-templates (with a grunt plugin) to generate a JS file that pre-caches all of your templates. Then use the usemin grunt workflow along with an asset versioning task to version the JS file.

    0 讨论(0)
提交回复
热议问题