New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: Client should cache 301/308 redirect #29776

gaillard opened this Issue Jan 17, 2019 · 2 comments


None yet
3 participants
Copy link

gaillard commented Jan 17, 2019

What version of Go are you using (go version)?


Does this issue reproduce with the latest release?


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?


This comment has been minimized.

Copy link

agnivade commented Jan 17, 2019

/cc @bradfitz


This comment has been minimized.

Copy link

bradfitz commented Jan 17, 2019

Never considered either way.

@bradfitz bradfitz added this to the Go1.13 milestone Jan 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment