From 86deb5f7fd9e9a9552a1ab87ee567412e1e46d78 Mon Sep 17 00:00:00 2001 From: dy <35313394+dyipon@users.noreply.github.com> Date: Wed, 15 Dec 2021 18:15:30 +0100 Subject: [PATCH] Update cache.go more preciese cacheKey with query support --- cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache.go b/cache.go index 73bf8b0..7f74a68 100644 --- a/cache.go +++ b/cache.go @@ -147,7 +147,7 @@ func (m *cache) cacheable(r *http.Request, w http.ResponseWriter, status int) (t } func cacheKey(r *http.Request) string { - return r.Method + r.Host + r.URL.Path + return r.Method + r.Host + r.URL.Path + r.URL.RawQuery } type responseWriter struct {