The recent commits to the streaming optimizations has an error leading to console warnings in the worker editor.
// Bypass processing for image requests (for most browsers, Firefox doesn't include image/* on the accept)
if (!isImage) {
const url = new URL(event.request.url);
if (event.request.method === 'GET' && isProxyRequest(url)) {
// Pass the requests through to the origin server
// (through the underlying request cache and filtering headers).
event.respondWith(proxyRequest('https:/' + url.pathname + url.search, csp.request));
} else {
event.respondWith(processRequest(event.request, event));
}
}
});
CSP is not defined in the above block (around line 37)
The recent commits to the streaming optimizations has an error leading to console warnings in the worker editor.
// Bypass processing for image requests (for most browsers, Firefox doesn't include image/* on the accept) if (!isImage) { const url = new URL(event.request.url); if (event.request.method === 'GET' && isProxyRequest(url)) { // Pass the requests through to the origin server // (through the underlying request cache and filtering headers). event.respondWith(proxyRequest('https:/' + url.pathname + url.search, csp.request)); } else { event.respondWith(processRequest(event.request, event)); } } });
CSP is not defined in the above block (around line 37)