diff --git a/plugin/http.go b/plugin/http.go index 2de2f82ac..98b5909ca 100644 --- a/plugin/http.go +++ b/plugin/http.go @@ -120,8 +120,9 @@ func NewHTTP(log *util.Logger, method, uri string, insecure bool, cache time.Dur // http cache p.Client.Transport = &httpcache.Transport{ - Cache: mc, - Transport: p.Client.Transport, + Cache: mc, + MarkCachedResponses: true, + Transport: p.Client.Transport, } if cache > 0 {