diff --git a/src/node/utils.ts b/src/node/utils.ts index 587bde16ec5cd5..26868e0d277725 100644 --- a/src/node/utils.ts +++ b/src/node/utils.ts @@ -30,7 +30,9 @@ export async function cachedRead( if (ctx) { ctx.etag = cached.etag ctx.lastModified = new Date(cached.lastModified) - ctx.status = 304 + if (ctx.get('If-None-Match') === ctx.tag) { + ctx.status = 304 + } // still set the content for *.vue requests ctx.body = cached.content }