blob: 070e572f4004d5f3f9bb635491f7cef3f47885d1 (
plain)
1
2
3
4
5
6
7
|
'use strict';
self.onfetch = function(event) {
if (event.request.url.indexOf('non-existent-file.txt') !== -1) {
event.respondWith(new Response('Response from service worker'));
}
};
|