Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: Client should cache 301/308 redirect #29776
What version of Go are you using (
The http.Client does no caching of responses at all. It's not just 301/308.
What is the context here? Is there a situation where this is causing problems? Also, if you are making the same request repeatedly, why is it problematic to be repeating the redirected call but not problematic to be repeating the final call?