We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2c18b commit 26aaffdCopy full SHA for 26aaffd
index.js
@@ -71,7 +71,7 @@ const middleware = (opts) => async (req, res, next) => {
71
}
72
73
onEnd(res, (payload) => {
74
- if (res.statusCode === 304) return
+ if (payload.status === 304) return
75
76
if (payload.headers[X_CACHE_EXPIRE]) {
77
// support service level expiration
0 commit comments