Skip to content

Commit 20fd58c

Browse files
authored
fix: cache rm unused branch (#3889)
1 parent d006e90 commit 20fd58c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/interceptor/cache.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ function handleResult (
195195
if (!result) {
196196
return handleUncachedResponse(dispatch, globalOpts, cacheKey, handler, opts, reqCacheControl)
197197
}
198-
if (!result.body && opts.method !== 'HEAD') {
199-
throw new Error('body is undefined but method isn\'t HEAD')
200-
}
201198

202199
const now = Date.now()
203200
if (now > result.deleteAt) {

0 commit comments

Comments
 (0)