diff --git a/src/handlers/get.ts b/src/handlers/get.ts index 9f20a4b..b9c4f19 100644 --- a/src/handlers/get.ts +++ b/src/handlers/get.ts @@ -81,7 +81,7 @@ const getHandler: Handler = async (request, env, ctx, cache) => { } // Cache response if cache is enabled - if (shouldServeCache && ![304, 206].includes(response.status)) { + if (shouldServeCache && response.status === 200) { const cachedResponse = response.clone(); cachedResponse.headers.append('x-cache-status', 'hit');