问题
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