Skip to content

Commit 1bca809

Browse files
Update handlers.js cache disabled for listing
Noticing issue on latest koreader update where cache dump isnt clearing the cache at all. Will need to look into this later
1 parent c79d27f commit 1bca809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handlers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export async function handleFileList(request, env, ctx) {
132132
const path = new URL(request.url).pathname;
133133
const prefix = path === "/" ? "" : path.slice(1); // Handle root path
134134

135-
const bypassCache = request.headers.get("X-Bypass-Cache") === "true";
135+
const bypassCache = true //request.headers.get("X-Bypass-Cache") === "true";
136136
const cache = caches.default;
137137
const cacheKey = new Request(request.url, { cf: { cacheTtl: 604800 } });
138138

@@ -206,4 +206,4 @@ export async function dumpCache(request, env, ctx){
206206

207207
return new Response('Failed to delete cache', { status: 500 });
208208
}
209-
}
209+
}

0 commit comments

Comments
 (0)