Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

Commit

Permalink
fix(cache): was using wrong method for non-GET/HEAD cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Apr 1, 2017
1 parent ed62b57 commit 810763a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function remoteFetch (uri, opts) {
) {
return opts.cacheManager.put(req, res, opts.cacheOpts)
} else if (opts.cacheManager && (
(req.method !== 'GET' && req.method !== 'PUT')
(req.method !== 'GET' && req.method !== 'HEAD')
)) {
return opts.cacheManager.delete(req, opts.cacheOpts).then(() => {
if (req.method !== 'POST' && res.status >= 500) {
Expand Down

0 comments on commit 810763a

Please sign in to comment.