From 6546bd8bd17461786fed6eb82e3a38b539b4a6cd Mon Sep 17 00:00:00 2001 From: evgeniy-scherbina Date: Wed, 11 Oct 2023 12:24:10 -0400 Subject: [PATCH] CR's fixes --- service/cachemdw/middleware.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/service/cachemdw/middleware.go b/service/cachemdw/middleware.go index 06363d8..e11bc1a 100644 --- a/service/cachemdw/middleware.go +++ b/service/cachemdw/middleware.go @@ -10,12 +10,10 @@ import ( "github.com/kava-labs/kava-proxy-service/decode" ) -type cacheContextKey string - const ( - CachedContextKey cacheContextKey = "X-KAVA-PROXY-CACHED" + CachedContextKey = "X-KAVA-PROXY-CACHED" - CacheHeaderKey = "X-Cache" + CacheHeaderKey = "X-KAVA-PROXY-CACHE-STATUS" CacheHitHeaderValue = "HIT" CacheMissHeaderValue = "MISS" )