Service worker -cache updates #424
Answered
by
Splaktar
Kajol1995-rgb
asked this question in
Q&A
-
Is there any way to intercept the service worker request, until unless we acknowledge the pop-up to be "OK", hash values should not updated into cache storage? |
Beta Was this translation helpful? Give feedback.
Answered by
Splaktar
Jun 25, 2024
Replies: 1 comment 4 replies
-
@Kajol1995-rgb can you please add a little more context here? How does this relate to Angular Hispano? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems to be a question for the Angular team and not the Angular Hispano team.
That said, I think you are trying to use the service worker in a way it was not designed for. I don't believe there is a concept of "user agreeing to a version update." The "OK" is not to agree that the app is allowed to update. It's to reload the app now to use the new update. The "Cancel" is there to allow you to quickly save your work before reloading the app to get the update. Either way, you are forced to update to the latest version of the app, one choice is immediate, the other allows a temporary delay. There is no way to permanently reject updates to the app. If you need that kind of functionality, …