SPA refresh when assets have changed?

ぃ、小莉子 提交于 2020-06-16 06:20:29

问题


I have written an SPA which caches all its assets like bundle-1234.js which are required in the index.html. I'm wondering that when the bundle-1234.js is downloaded, cached and executed how does the app ever refresh when the bundle changed to bundle-9876.js?

I'm using react-router-dom do the routing of my SPA, so a route change is not a page refresh. Beware that the app will not be manually refreshed by the user.

How do you tell a SPA to refesh its assets when the page doesn't refresh?

来源:https://stackoverflow.com/questions/46002676/spa-refresh-when-assets-have-changed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!