Questions tagged as 'service-worker'

0
answers

Ionic PWA: Notifications app closed

Hello everyone. I searched a lot for this problem where I'm stuck for a week. I have an Ionic PWA project that gets some Firebase notifications, I can receive the notifications without any problem and can get the payload in the foreground (app i...
asked by 21.06.2018 / 21:51
0
answers

How to cache signed files (Service worker)

Several front-end applications implement a signature template in the files to control the cache, and every change in the file that signature changes. Signature examples: sw-d58e3582afa99040e27b92b13c8f2280.js sw.js? _gc = 20180101 How d...
asked by 30.05.2018 / 20:35
1
answer

Problem with use of Service Worker (A ServiceWorker passed a promise to FetchEvent.respondWith () that resolved with non-Response value 'undefined'.)

The service worker I'm going to show below works fine in google chrome, but when I'm using mozilla firefoz it returns the error: Failed to load 'http://127.0.0.1:8000/#/'. A ServiceWorker passed a promise to FetchEvent.respondWith() that resol...
asked by 15.05.2018 / 15:41
1
answer

Keep the cache of a JSON query on 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. Q: I have been testing with Service Worker, it works perfectly but i...
asked by 09.04.2018 / 00:38
1
answer

(Web | Service) Worker import UMD script - How to check the context

How to check if the script is being called from a (Web | Service) Worker? I have used UMD for a long time and I am migrating my projects to support SW ... although, I use many features available only on window objects and document man...
asked by 16.03.2018 / 04:33
0
answers

Zend Frameworker 2 and Service Worker

Hello, I'm trying to put a service worker in my zf2 project and I'm not getting it. Anyone who works with zf2 knows that the entire project runs from the public folder and so that the public name does not appear in the url a configuration is made...
asked by 22.01.2018 / 13:40
0
answers

Error fetching fetch on ServiceWorkerGlobalScope

After upgrading to chrome 64, I noticed that this error appears on the console, whenever I load a page in a new tab. I can not identify where it is in the service worker. Here is my code when running fetch: self.addEventListener('fetc...
asked by 26.01.2018 / 15:18
1
answer

Problem with cache Service Worker

I have a perfectly functioning service worker. The problem is that it is caching the logged-on user. So every time I update the page, even logged in, it shows the header unlogged. My service worker: importScripts("{% static 'js/cache-polyfill....
asked by 21.12.2017 / 15:36