As commented by @Jonask, "setting Bypass for network
in Chrome Dev Tools>Application>Service Workers
" fixed the problem. Can anyone provide what is exactly happening in the background with this setting? Because I am not sure if this has to be set for all the users who is going to use the application? Or if this issue exist only with localhost?
Thanks