Skip to content

Commit

Permalink
Update cache.go
Browse files Browse the repository at this point in the history
more preciese cacheKey with query support
  • Loading branch information
dyipon authored Dec 15, 2021
1 parent c8947cb commit 86deb5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 86deb5f

Please sign in to comment.