Detect application version change on a single page application

前端 未结 3 892
天涯浪人
天涯浪人 2020-12-12 18:29

today a question was raised here and I don\'t have an evident answer.

Assume that we concatenate and minify all resource files (CSS and Javascript) and declare them

3条回答
  •  醉酒成梦
    2020-12-12 19:00

    I decided to add my final thoughts as an answer here too:

    We went for a reduced solution for now.

    As we have a "proxy service" that is (again for now) the only one that interacts with this application, we added the application version on the http header of all responses. If we receive a newer version, a popup appears notifying the user and a full page refresh is issued...

    This solution won't work for applications that don't have their own "private" service.

提交回复
热议问题