Skip to content

Commit 4d9830b

Browse files
committed
fix: avoid caching redirect under force
1 parent 2a23432 commit 4d9830b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ module.exports = ({
118118
await cache.set(key, value, ttl)
119119
}
120120

121-
if (!isModified) {
121+
if (!hasForce && !isModified) {
122122
res.statusCode = 304
123123
res.end()
124124
return

0 commit comments

Comments
 (0)