Skip to content

Commit

Permalink
fix: tag -> etag
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 27, 2020
1 parent c3a7a96 commit 43fe56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function cachedRead(
if (ctx) {
ctx.etag = cached.etag
ctx.lastModified = new Date(cached.lastModified)
if (ctx.get('If-None-Match') === ctx.tag) {
if (ctx.get('If-None-Match') === ctx.etag) {
ctx.status = 304
}
// still set the content for *.vue requests
Expand Down

0 comments on commit 43fe56f

Please sign in to comment.