- From: QingLeiLi <notifications@github.com>
- Date: Fri, 06 Dec 2019 11:16:46 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 6 December 2019 19:16:48 UTC
A sample code: ``` self.addEventListener('fetch', function(e) { if(e.request.url === 'https://cdna.com/img.png'){ return fetch(new Request('https://cdnb.com/img.png')); }else{ return fetch(e.request); } }); ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1488#issuecomment-562702316
Received on Friday, 6 December 2019 19:16:48 UTC