Linked Questions
13 questions linked to/from "Status Code:200 OK (from ServiceWorker)" in Chrome Network DevTools?
13
votes
1
answer
8k
views
Ignore ajax requests in service worker
I have an app with a basic 'shell' of HTML, CSS and JS. The main content of the page is loaded via multiple ajax calls to an API that is at another URL to the one my app is running on. I have set up a ...
9
votes
1
answer
3k
views
Workbox - runtime cache only created on second page refresh
I'm new to service workers, and I'm using Workbox to precache my app shell and cache my api data.
The precaching of assets is working correctly, with the cache being created and populated.
The ...
1
vote
1
answer
3k
views
Fetch returns 200 in service worker even if offline
I want my Angularjs (1.x) application to have an offline version as fallback in case there is no network or no internet service.
I want the service worker's fetch event listener, try to fetch the ...
1
vote
3
answers
1k
views
Service worker runtime cache
I am creating a progressive web app using service workers and i am using service worker toolbox to cache my content.
Service worker code to cache my content :
toolbox.router.get('/(.)', toolbox....
2
votes
1
answer
2k
views
Service workers issue in fetching the data
I am using the below script to get the bootstrap.min.js file from the service workers but in network pannel it shows 1 request for bootstrap.min.js and all other requests it shows 2 request i have ...
1
vote
1
answer
1k
views
ServiceWorker fetch-complete event
Reasone, I am using serviceWorker - is to check the time until cookie ends. Cookie expiration is set to 60 minutes on request.
I built 2 versions of the fetch listener on serviceWorker
This version ...
0
votes
1
answer
631
views
Understanding time stats in Chrome for Service Worker cached files
I'm trying to understand what the network tab in Chrome dev tools is telling me for cached files coming from Service Worker.
I'm seeing a cache hit get logged in the console (see the service worker ...
0
votes
1
answer
856
views
Workbox service worker maxAgeSeconds query
I have implemented a service worker for my website. However I am not sure about the expiration setting on this.
Am currently using Nextjs for page rendering and Workbox with Apollo for data mangement.
...
1
vote
1
answer
720
views
Request Deferrer with Service Worker in PWA
I am making a PWA where users can answer the forms. I want it to make also offline, so when a user fills out a form and does not have the internet connection, the reply will be uploaded when he is ...
1
vote
0
answers
380
views
Why size display (from serviceworker) for post method?
Why size column displays
(from ServiceWorker)
for post method ?
I'm using angular cli with service worker. As far as I know post should not go throw service worker.
1
vote
0
answers
368
views
Workbox images fetch problem to other Url
I am using workbox to fetch images. Images are fetching successfully. but Workbox fetches image file two times.When I check in console
1. same image fetch sucessfully
2. same image throw an error ...
0
votes
0
answers
273
views
Progressive Web App - Fetch request for post is posting data twice
I am facing the issue that when I am posting a data using fetch API, I am getting the data posted twice.
my service-worker code code is like this:
self.addEventListener('fetch', function(event) {
...
2
votes
0
answers
166
views
ServiceWorker is not fetching all requests
I'm playing around with ServiceWorkers.
In the current case I'm trying an example worker: https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/prefetch/service-worker.js
After ...