Source code

Revision control

Copy as Markdown

Other Tools

'use strict';
self.addEventListener('fetch', event => {
if (event.request.url.endsWith('waituntil-forever')) {
event.respondWith(new Promise(() => {
// Use a promise that never resolves to prevent this fetch from
// completing.
}));
}
});