From 68071f40f631ab023f856b46e8a3c81cba3d0513 Mon Sep 17 00:00:00 2001 From: Ruaridh <86845749+RooRay@users.noreply.github.com> Date: Fri, 24 May 2024 01:11:05 +0100 Subject: [PATCH] Fix comments --- worker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worker.js b/worker.js index 23fd561..ab4495b 100644 --- a/worker.js +++ b/worker.js @@ -1,3 +1,5 @@ +// Read github.com/RooRay/B2Worker for setup instructions + export async function handleFile(event) { const url = new URL(event.request.url); const cache = caches.default; @@ -5,6 +7,7 @@ export async function handleFile(event) { let contentType = 'application/octet-stream'; // Default content type if (!response) { + // Replace this URL with your friendly URL as per the instructions response = await fetch(`https://f003.backblazeb2.com/file/RooImg${url.pathname}`); const headers = { "cache-control": "public, max-age=14400" };