Prerequisites
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- What is your product version? 10.2
- What is your product type (Angular or MVC)? Angular
- What is product framework type (.net framework or .net core)? .NET Core
If issue related with ABP Framework
- What is ABP Framework version?
If issue is about UI
Hi, we have problem that after deployment of new version - we see "new version", but still some functionality not working. After clearing browser cache "manually" - it works (or in incocnito mode).
Is there any possiblity to show some Popup window after new version is published "New version .... Press OK" and when pressing OK button, the browser cache is deleted? Or do you have some other hints?
9 Answer(s)
-
0
Hi @pliaspzero,
I have actually implemented something like this in my application. My implementation isn't ideal where I'm using a polling task in the UI to a "GetVersion" endpoint, where I compare the version to a value that is stored in localStorage. If those values don't match, I show an alert that a new version is available, and when they click the OK button, it reloads the window.
The main dependency is that any browser cacheable assets include a cache buster
?d=<value>
I can look at my implementation and see if this is something generic I can offer back to the ANZ community.
Ideally my implementation would have used SignalR & websockets rather than an explicit polling task from the browser, but perhaps the team would be able to make it "right".
Give me a day or two to wrap up something I'm working on now, and I should be able to pull you an example implementation I check for a new version. -Brian
-
0
Hi @sedulen that would be cool - thx in advance !
-
0
We have added this to hist project <myProjectname>.Web.Host.csproj
<Target Name="PrepublishScript" BeforeTargets="ComputeFilesToPublish"> <Exec Command="gulp build" /> <Exec Command="node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod --aot --outputHashing=all" />
Any other ideas?
-
0
Hi @pliaspzero,
Please follow https://github.com/aspnetzero/aspnet-zero-core/issues/4345
-
0
Hi @pliaspzero
I will be providing my work to the ASPNZ team in the github ticket that @ismcagdas referenced. My project last week took longer than expected, but I finished it up over the weekend, so I should be able to get caught up on your question this week.
-Brian
-
0
Thanks @sedulen :)
We really appriciate your contributions.
-
0
Thanks @sedulen :)
-
0
Thanks @sedulen :)
-
0
Hi All,
I'm closing this issue, please follow https://github.com/aspnetzero/aspnet-zero-core/issues/4345