diff options
-rw-r--r-- | system/db/cache.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/db/cache.go b/system/db/cache.go index 6ba00ad..4076848 100644 --- a/system/db/cache.go +++ b/system/db/cache.go @@ -20,9 +20,12 @@ func CacheControl(next http.Handler) http.HandlerFunc { if match := res.Header().Get("If-None-Match"); match != "" { if strings.Contains(match, etag) { + fmt.Println("matched etag") res.WriteHeader(http.StatusNotModified) return } + + fmt.Println("checked, no match") } next.ServeHTTP(res, req) |