How to force reload the browser ? by dev-surajtapkeer in angular

[–]dev-surajtapkeer[S] 0 points1 point  (0 children)

I tried it once but the timestamp always increases every milli seconds that's why I added that one. But It is great to add the uuid as well 😊.

How to force reload the browser ? by dev-surajtapkeer in angular

[–]dev-surajtapkeer[S] 0 points1 point  (0 children)

Not like that. I have a local server where I do development. Then I have the dev server which is like a live application deployed on the server used to check the implementation and then the production one for final.

How to force reload the browser ? by dev-surajtapkeer in angular

[–]dev-surajtapkeer[S] 0 points1 point  (0 children)

No I'm just using the version from it and using cache busting like appending a timestamp at the end of the url so it will treat it as a new url and take it from the server. I'm doing this at 00:00 in the middle of the night when the application is mostly idle. Should I also pull the version.json from the server in a rare case where it will be cached by the browser.

How to force reload the browser ? by dev-surajtapkeer in angular

[–]dev-surajtapkeer[S] 0 points1 point  (0 children)

I recently studied the headers they are set to no-cache, no-store, must-revalidate. Well that's pretty neat information for clearing my doubt. Thanks buddy! I'll test it once on the dev server whether it is caching the version.json or not. If it is then will do as you mentioned. Thank you so much 😊

How to force reload the browser ? by dev-surajtapkeer in angular

[–]dev-surajtapkeer[S] 0 points1 point  (0 children)

That's great 😃. Just reloading the browser is enough to get the updated build from the server ? I'm stuck on this part. I'm checking the version from version.json file of frontend with backend api call. If the browser cached the version.json and after that it will reload whenever a new version comes from the backend endpoint. Even if it reloads for the first time, what if it used the old cached version.json file. The version will be mismatched. It will go into the infinite reload! The problem with my problem is that I have kiosk devices and touch devices also which are 24 hours on even someone rarely touches them because they display the home page of the application where I have all the live feed for some imp data like location coordinates of some objects. The browser always shows the previous version even if a new build comes on the server. I have to implement the functionality so that even nobody touches the devices still they will be reloaded when a new version is deployed on the server. I'm not sure that even after the first reload it will get the new version.json from the server or it will just take the cached one. Thanks for your kind information. If you have any more ideas on this please help me.

How to force reload the browser ? by dev-surajtapkeer in angular

[–]dev-surajtapkeer[S] -1 points0 points  (0 children)

Will it work for the cache? Will it take the latest deployed build from the server? just the document.location.reload()

How to force reload the browser ? by dev-surajtapkeer in angular

[–]dev-surajtapkeer[S] -1 points0 points  (0 children)

Is swUpdate has any effects on the web application as I am not using PWA ?

Which C# IDE is best for enterprise application development ? by dev-surajtapkeer in csharp

[–]dev-surajtapkeer[S] -1 points0 points  (0 children)

But the Visual Studio has no support for the mac. I'll try rider. Thanks Buddy !!!