1

function fetchHandler(evt) { console.log('request:' + evt.request.url); dealWithRequest(evt); } addEventListener("fetch", fetchHandler); function dealWithRequest(evt){ fetch('./cgi_data.json,function(){}); }

fetch() in fetch event handler not trigger fetch event.

2
  • what is the fetch event? Commented Apr 8, 2016 at 3:54
  • You are missing a single quote fetch('./cgi_data.json',function(){}); after json. Commented Apr 8, 2016 at 5:19

1 Answer 1

2

You're right. No request (in particular fetch()) generated from a service worker is intercepted by the same or other service worker.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.