I have a progressive web application that does not use any caching. I am looking for a way to update the application automatically every time that there is a change on the server. Is there any way to achieve that ? Thanks.
Asked
Active
Viewed 42 times
0
-
I would say websockets, but creating a websocket for each user would be way heavier than implementing basic caching ... – Nov 19 '18 at 14:14
-
The real issue is how to make sure that I am always using the latest version. I am wondering if there is something in iis, or angular that can help. – user8166057 Nov 19 '18 at 14:26
-
Maybe this? https://stackoverflow.com/questions/43544077/react-with-typescript-hot-reload-iis-webserver – Jacopo Sciampi Nov 19 '18 at 14:27
-
Cache busting is the easiest way. If you don't want to use that, simply force reload your application on deployement of a new application, and manually bust the cache. – Nov 19 '18 at 14:27
-
You need a service worker for that. https://angular.io/guide/service-worker-intro – Roberto Zvjerković Nov 19 '18 at 14:38
-
The service worker seems good but for months to come I'll be working with a server using http. Even though it is a local network, I am not sure I can still use the service worker on http. – user8166057 Nov 19 '18 at 15:17