httpcache
httpcache copied to clipboard
Cache Key should contain more than just the HTTP Method
The library uses a Cache Key composed out of the Request Method and http.Request.RequestURI.
However "RequestURI" is a server only field and is empty on client side.
Thus all GET Request share the same cache key. ("GET "). As a result this library is basically is a single page cache.
See https://github.com/bxcodec/httpcache/blob/e926f2b6999907b20502599204946ee15730d767/roundtriper.go#L222
Getting the same error when fetching GET also from different URLs