chore: expose http caching in log
This commit is contained in:
parent
c0a8472e08
commit
26d61914f9
1 changed files with 3 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue