Most voted "service-worker" questions
23 questions
Sort by count of
-
5
votes1
answer114
viewsConfiguration of service worker
Can you configure the code below the service worker to ignore the cache if the request from the server is 200? My service worker is picking up routes that exist and are not curly and generating…
-
2
votes0
answers85
viewsPWA: How to save an offline POST and fire it when the application is online?
From what I saw it is possible to cache GET requests / service Workers so that they are triggered when the application comes back online. It is possible to do the same functionality with a POST? Is…
-
1
votes0
answers45
viewsRead response in json via a fetch with service-worker
I am implementing a web notification system, using service-worker and other components, in Asp.net MVC. 1° I already have my worker registered and started on the system. 2° I can display…
-
1
votes0
answers52
viewsConnection via socket, only when necessary
I have a web application that needs to update some values frequently, as the changes must be available almost in real time. For this, I run via ajax a refresh.php routine every 15 seconds, which…
-
1
votes0
answers41
viewsFirebase Messaging with Django
I am a long time already getting caught up with it. After hours and days I could see a light at the end of the tunnel. I’m using a plugin for Django, this one: https://github.com/xtrinch/fcm-django…
-
1
votes0
answers82
viewsService Worker caching an Asp net core 2.0 application
I cannot meet the specifications of Progressive web apps because my service worker does not cache the web app. Follows the code: self.addEventListener('install', e => { let timeStamp =…
-
1
votes1
answer38
viewsHow to declare routes that are cached and other routes that are not stored?
Good morning. I am developing a SPA system whose part is available only when the user is online and another is available even offline. The offline part is configured in the service worker but a…
-
1
votes0
answers143
viewsUncaught (in Promise) Domexception: Quota exceeded
I’m having a problem with my service-worker. Suddenly it started showing this error in devtools: Uncaught (in promise) DOMException: Quota exceeded. Follows my service-worker.js: {% load static from…
-
1
votes0
answers32
viewsDoes the browser cache still work together with the service worker cache?
I am creating a service worker for a pwapp I managed to manage the cache through serviceworker but when updating the pwapp files, the following occurred: serviceworker deleted the old cache…
-
0
votes1
answer83
viewsHow to identify server updates with Service Worker?
Is it possible to identify that there was an update on the server, that is, there was an update on the page (HTML) or in the style (CSS), and request to the server to fetch the updated data? If yes,…
-
0
votes1
answer198
viewsCaching a JSON query in IONIC 3
Hello, I have an App that consumes JSON and lists the data, so far so good. My difficulty is in keeping this data for offline access. I want to consult after you’re offline. P.S.: I’ve been testing…
-
0
votes1
answer149
viewsScope of service-worker?
I am working on a PWA and would like to know if the scope or directory where the service-worker file is located can interfere, such as in push notifications. A file that is inside /statics/sw.js…
-
0
votes1
answer57
viewsHow to fix typescript types in Service Worker?
I have a Typescript file that will be used in Service Worker, but by default, the scope/context/this global and variable self file will always reference to Window type, which is not what happens at…
-
0
votes1
answer75
viewsProblem with Service Worker cache
I have a service worker working perfectly. The problem is that it is caching the user out. So every time I update the page, even logged in, it shows the header out. My service worker:…
-
0
votes1
answer31
views(Web|Service) Worker import UMD script - How to check context
How to check if the script is being called from a (Web|Service) Worker? I have been using UMD for a long time and am migrating my projects to support SW ... although I use many features available…
-
0
votes1
answer70
viewsProblem with using Service Worker(A Serviceworker passed a Promise to Fetchevent.respondWith() that resolved with non-Response value 'Undefined'.)
The service worker that I will show below works well in google Chrome, but when I am using the mozila firefoz returns the error: Failed to load 'http://127.0.0.1:8000/#/'. A ServiceWorker passed a…
-
0
votes0
answers29
viewsHow to cache signature files (Service worker)
Several front-end applications implement a signature template in the files to control the cache, and each change in the file this signature changes. Signature examples:…
-
0
votes1
answer273
viewsHow to test service worker locally?
In my attempt to understand the workings of Workers services I’m trying to implement the same in a basic application I’m serving locally, the problem is that the service worker fails to register,…
-
0
votes1
answer264
viewsPWA - Add start screen does not work on localhost
I’m trying to make my mobile site appear the "Add Home" button, but it doesn’t work at all. My files index php. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8">…
-
0
votes0
answers70
viewsOffline web push notifiion
I’m creating a list to, and in it, I want to be able to create pre-programmed notifications. The application persists all data in Local Storage, IE, you do not have to use a push notification server…
javascript localstorage push-notification service-workerasked 5 years, 2 months ago Costamilam 9,556 -
0
votes1
answer47
viewsPWA - How to pass parameters to another page while offiline?
I am developing a PWA application that will work mainly in offiline mode, I have created and implemented virtually everything, indexedDB, service-worker, etc... I am trying to pass some parameters…
-
0
votes1
answer26
viewsI can’t find where I went wrong in my PWA
Hi. I’m with a problem, I’m not understand why my service worker is not registering, I’ll send some prints and my code, I thank from now to all help my sw.js code: var CACHE_NAME = 'static-v10'; var…
-
0
votes0
answers21
viewsOperation of the service worker in a keyclock application
I am creating an application, where the login is done by the service "Keyclock" and the application is angular. When enabling the service worker and running local, it does exactly as expected,…