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" )