We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a50d78 commit 28fe3dbCopy full SHA for 28fe3db
modules/httpcache/httpcache.go
@@ -59,7 +59,7 @@ func checkIfNoneMatchIsValid(req *http.Request, etag string) bool {
59
ifNoneMatch := req.Header.Get("If-None-Match")
60
if len(ifNoneMatch) > 0 {
61
for _, item := range strings.Split(ifNoneMatch, ",") {
62
- item = strings.TrimSpace(item)
+ item = strings.TrimPrefix(strings.TrimSpace(item), "W/") // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag#directives
63
if item == etag {
64
return true
65
}
0 commit comments