Questions tagged as 'service-worker'

1
answer

Configuration of service worker

Can you configure the code below the service worker to ignore the cache if the request that comes from the server is 200? My service worker is picking up routes that exist and are not cached and generating several errors in the application. W...
asked by 03.11.2017 / 15:08
0
answers

Uncaught (in promise) DOMException: Quota exceeded

I'm having a problem with my service-worker. Suddenly he started showing this error in devtools: Uncaught (in promise) DOMException: Quota exceeded. Follow my service-worker.js : {% load static from staticfiles %} if( 'function' === typ...
asked by 31.12.2017 / 04:13
1
answer

How to declare routes that are cached and other routes that are not stored?

Good morning. I am developing a SPA system whose one 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 problem has started. Routes of the application...
asked by 03.11.2017 / 13:02
0
answers

Service Worker caching an asp net core 2.0 application

I can not meet the specifications of progressive web apps because my service worker does not cache the web app. Follow the code: self.addEventListener('install', e => { let timeStamp = Date.now(); e.waitUntil( caches.open('...
asked by 12.10.2017 / 14:51
0
answers

Connection via socket only when needed

I have a web application that needs to refresh some values often because the changes have to be available almost in real time. To do this, I run via ajax a refresh.php routine every 15 seconds, which returns the updated information. Time that in...
asked by 18.09.2017 / 20:46
0
answers

Firebase Messaging with Django

I've been struggling for a long time. After hours and days I could see a light at the end of the tunnel. I'm using a plugin for Django, this one: link In my INDEX.HTML I have the following code: <script src="https://www.gstatic.com/...
asked by 03.10.2017 / 01:38
0
answers

Read response in json through fetch with service-worker

I'm implementing a web notification system, using service-worker and other components, in ASP.NET MVC. 1 ° I already have my worker registered and logged into the system. Home 2 ° I can already display notifications. - Missing - Home Corre...
asked by 13.07.2017 / 17:29
1
answer

Scope of service-worker?

I'm working on a PWA and would like to know if the scope or directory where the service-worker file is located might interfere with, for example, push notifications. Does a file within /statics/sw.js work in the same way as one that is...
asked by 17.04.2018 / 15:50
1
answer

How to identify updates on the server with Service Worker?

Is it possible to identify that there was an update on the server, that is, there was an update in the page (HTML) or style (CSS), and make the request to the server to fetch the updated data? If so, how?     
asked by 25.01.2017 / 15:44
0
answers

ServiceWorker save form

I'm currently handling the fetch events in my ServiceWorker as follows: self.addEventListener('fetch', event => { // For 'POST' method if ( event.request.method !== 'GET' && event.request.method !== 'HEAD' &&...
asked by 04.08.2018 / 06:10