diff --git a/go.mod b/go.mod index 4a340b4f..a92256ff 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/gomodule/redigo v1.8.9 github.com/google/uuid v1.5.0 // indirect github.com/gorilla/mux v1.8.0 - github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 + github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect github.com/hashicorp/consul/api v1.25.1 github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect diff --git a/relay/relay.go b/relay/relay.go index db617e58..65b8be7c 100644 --- a/relay/relay.go +++ b/relay/relay.go @@ -14,7 +14,6 @@ import ( "github.com/launchdarkly/ld-relay/v8/internal/projmanager" - "github.com/gregjones/httpcache" "github.com/launchdarkly/ld-relay/v8/config" "github.com/launchdarkly/ld-relay/v8/internal/autoconfig" "github.com/launchdarkly/ld-relay/v8/internal/basictypes" @@ -416,7 +415,6 @@ func (r *Relay) addEnvironment( jsClientContext.Origins = envConfig.AllowedOrigin.Values() jsClientContext.Headers = envConfig.AllowedHeader.Values() - cachingTransport := httpcache.NewMemoryCacheTransport() jsClientContext.Proxy = &httputil.ReverseProxy{ Director: func(req *http.Request) { url := req.URL @@ -433,7 +431,6 @@ func (r *Relay) addEnvironment( } return nil }, - Transport: cachingTransport, } }