All Questions
Tagged with service-worker angular
437 questions
1
vote
1
answer
73
views
How can i clear api's response cache after logout while using angular service worker?
I cache api's responses by using angular generated service worker , now i want to clear these caches after user decide to logout for this i made new custom service worker file which listens to ...
1
vote
0
answers
35
views
angular pwa returning 504 even thought it can work offline properly
I have an Angular application with @angular/pwa
here is the ngsw-config.json
{
"$schema": "../../node_modules/@angular/service-worker/config/schema.json",
"index": &...
0
votes
0
answers
31
views
How to react to service worker registration failed error in Angular pwa
I am using the @angular/service-worker for my PWA. My requirement is that the app should be usable only when a service worker has successfully installed. I used the following service :
export class ...
0
votes
0
answers
38
views
Angular6 project has not detected new version deployment with service worker 6.1.10 version
I am working an Angular6 project with version detected popup with the service worker 6.1.10 it was working fine, but nowadays not working the version detected. I have placed below my code. I have ...
0
votes
0
answers
144
views
SwUpdate Not Working On First Load Before First Service Worker Registered
I'm trying to use a service worker to deliver prompt updates to users actively using the site. Followed the simple steps laid out in: https://angular.io/guide/service-worker-getting-started but I'm ...
0
votes
1
answer
65
views
Angular PWA ngsw-worker.js:1 Uncaught SyntaxError: Invalid or unexpected token (at ngsw-worker.js:1:1)
Using Angular V14.2.
Getting the below error in the console window.
In the Application tab -> service workers menu the status is not getting activated.
App.module.ts file
0
votes
1
answer
51
views
Old Angular Page Gets Served
I have an Angular 16 webpage with a service worker. This page is served by a NGINX which is under my control.
Recently I have noticed that when visiting the page, the browser shows the old version. I ...
0
votes
0
answers
22
views
Why does unregistering an existing but useless service worker cause an external script to finally load?
I have come across a very strange occurrence happening on a webpage I am working on. This has only become a recent issue as we have implemented an external cookie management system, this is loaded ...
0
votes
1
answer
192
views
Angular Service Worker: 404 Error on Specific Pages, 504 Offline (localhost Works Fine)
I'm facing issues with my Angular application's service worker when deployed. Here's a breakdown of the problems:
404 Error on Specific Pages:
When I try to load certain pages, like "/jobs"...
0
votes
0
answers
44
views
When should I re-register the angular service worker in my application
what is the need to change/update the new service worker in the client since there is no change in the ngsw-worker.js
whenever ngsw.json is updated, on the first reload, new content changes inside my ...
0
votes
1
answer
58
views
PWA SW Worked checkForUpdate Never Resolves
I have been trying to work with the PWA for our application to ensure that it updates as necessary but for some reason neither the checkForUpdate nor versionUpdates methods resolve to any values.
...
0
votes
1
answer
375
views
Service worker not making request on first load in angular 17
I want to make an API call to one of the endpoints I have inside my main.ts I have done this before to external API's but never to one locally. So, everytime I make the request the first time never ...
0
votes
0
answers
121
views
Angular Service Worker - Cryptography SHA1
My project was scanned by CheckMarx and I got:
"Client Weak Cryptographic Hash" : The application employs weak
hashing in sha1
for the angular service worker.
It found it on 3 different js ...
1
vote
0
answers
453
views
Service Worker in angular 17 not working during offline mode
I had installed service worker by this command @angular/pwa and its also registered successfully but on going offline mode it gives no internet connection the data is not being cached and loaded when ...
0
votes
0
answers
40
views
Service Worker Cache Issue After Updating Angular Website
Description:
I have implemented a Service Worker for my Angular frontend, and it has been functioning well. However, after updating my website, users with the old Service Worker cache in their ...