diff --git a/go.mod b/go.mod index 6d36026..68a423b 100644 --- a/go.mod +++ b/go.mod @@ -3,11 +3,10 @@ module github.com/devcyclehq/sdk-proxy go 1.20 require ( - github.com/devcyclehq/go-server-sdk/v2 v2.16.0 + github.com/devcyclehq/go-server-sdk/v2 v2.17.0 github.com/gin-gonic/gin v1.10.0 github.com/kelseyhightower/envconfig v1.4.0 github.com/kr/pretty v0.3.1 - github.com/launchdarkly/eventsource v1.7.1 github.com/stretchr/testify v1.9.0 ) @@ -28,6 +27,7 @@ require ( github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/kr/text v0.2.0 // indirect + github.com/launchdarkly/eventsource v1.7.1 // indirect github.com/leodido/go-urn v1.4.0 // indirect github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2 // indirect github.com/mattn/go-isatty v0.0.20 // indirect diff --git a/go.sum b/go.sum index 6d5dd57..244a1ee 100644 --- a/go.sum +++ b/go.sum @@ -11,8 +11,10 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/devcyclehq/go-server-sdk/v2 v2.16.0 h1:8yefgJISXZgSIlXcCNMK+RGM6X9kuuB1nZAs3kzSExQ= -github.com/devcyclehq/go-server-sdk/v2 v2.16.0/go.mod h1:DzKrJ4s2apfphFwB/Aq8YDf7brB+NDr6IxX0TNi2c24= +github.com/devcyclehq/go-server-sdk/v2 v2.16.1 h1:NZ0vHZhhrPOb2hbU/r5sIIDSG4tPc+TiO/ovJaP0Gk8= +github.com/devcyclehq/go-server-sdk/v2 v2.16.1/go.mod h1:DzKrJ4s2apfphFwB/Aq8YDf7brB+NDr6IxX0TNi2c24= +github.com/devcyclehq/go-server-sdk/v2 v2.17.0 h1:eBvoJesVPYvy7htJBjhIWRGbQq5fsmlcv4nvsrHqPDU= +github.com/devcyclehq/go-server-sdk/v2 v2.17.0/go.mod h1:DzKrJ4s2apfphFwB/Aq8YDf7brB+NDr6IxX0TNi2c24= github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0= github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= diff --git a/options.go b/options.go index b893f71..f94c333 100644 --- a/options.go +++ b/options.go @@ -60,6 +60,7 @@ func (i *ProxyInstance) BuildDevCycleOptions() *devcycle.Options { options := devcycle.Options{ EnableEdgeDB: false, EnableCloudBucketing: false, + DisableETagMatching: true, EventFlushIntervalMS: time.Duration(i.SDKConfig.EventFlushIntervalMS) * time.Millisecond, ConfigPollingIntervalMS: time.Duration(i.SDKConfig.ConfigPollingIntervalMS) * time.Millisecond, RequestTimeout: time.Duration(i.SDKConfig.RequestTimeout) * time.Millisecond,