summaryrefslogtreecommitdiff
path: root/system/db/cache.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-11 20:00:50 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-11 20:00:50 -0800
commit3fa96eea557c4951d473f301d5172c5d7a870376 (patch)
tree2629c8a94c4215414bd065857ee7f7380b01f0c5 /system/db/cache.go
parent7e06c63410304767bc6b0dce4e1e2477934fd816 (diff)
removing print debug for cache check
Diffstat (limited to 'system/db/cache.go')
-rw-r--r--system/db/cache.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/system/db/cache.go b/system/db/cache.go
index e964906..bfca709 100644
--- a/system/db/cache.go
+++ b/system/db/cache.go
@@ -20,12 +20,9 @@ func CacheControl(next http.Handler) http.HandlerFunc {
if match := req.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)