Source code

Revision control

Copy as Markdown

Other Tools

self.addEventListener('fetch', (event) => {
result="FAIL";
if(event.request.headers.has("sec-ch-device-memory") && event.request.headers.has("device-memory"))
result="PASS";
event.respondWith(new Response(result));
});