net/http: Client should cache 301/308 redirect #29776
Labels
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?go1.11.1
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?linux amd64, android arm
What did you do?
Used http.Client for multiple calls against a url that returns 301 or 308.
What did you expect to see?
Second invocation to use a cached response from the first.
What did you see instead?
The first call before the Location is followed is always made.
Is there any reason this choice was made or has the logic just never been put in?
The text was updated successfully, but these errors were encountered: