diff --git a/index.html b/index.html index 38ca3b1..4b6ee42 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@ + Column Reader: read one column of a newspaper PDF at a time diff --git a/public/5534e97158d2c026160a6184501e5595.txt b/public/5534e97158d2c026160a6184501e5595.txt new file mode 100644 index 0000000..c953ad1 --- /dev/null +++ b/public/5534e97158d2c026160a6184501e5595.txt @@ -0,0 +1 @@ +5534e97158d2c026160a6184501e5595 \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..59af358 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://column-reader.vercel.app/sitemap.xml diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..d7c0bfc --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,4 @@ + + + https://column-reader.vercel.app/ + diff --git a/src/sw/worker.js b/src/sw/worker.js index 07d803b..3cf4b69 100644 --- a/src/sw/worker.js +++ b/src/sw/worker.js @@ -81,6 +81,8 @@ export function registerWorker(scope, config) { scope.addEventListener("fetch", (event) => { const req = event.request; if (req.method !== "GET" || new URL(req.url).origin !== scope.location.origin) return; + // Search-engine files (robots, sitemap, IndexNow key) always come from the network, never the app shell. + if (/^\/(robots\.txt|sitemap\.xml|[0-9a-f]{32}\.txt)$/.test(new URL(req.url).pathname)) return; if (req.mode === "navigate") { event.respondWith(handleNavigation(scope, cacheName, req)); return;