search

Home  >  Q&A  >  body text

angular.js - How to solve the cache problem caused by website upgrade after angular separates the front-end and back-end?

Every time the website is upgraded and updated, it will cause certain cache problems

I have used automated tools to add a hash suffix to every file that can be changed,

And the version suffix "?ver1.00" is also added to the end of each file link.

But the browser still caches the previous code

Is there any way to completely solve this problem of browser caching code?

曾经蜡笔没有小新曾经蜡笔没有小新2778 days ago582

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-15 17:09:03

    Try this, add a request parameter, pay attention to the equal sign

    ?ver=1.0

    This should be fine.

    reply
    0
  • Cancelreply