-
Notifications
You must be signed in to change notification settings - Fork 842
Fix: [ATS 200 response after 302 not cached] (#12369) #12373
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
Conversation
|
Two thoughts:
We'll have to have Damien look at this I think. |
|
The code change does not seem related to the issue in the title (which I will link). Why does allowing an extra redirection cycle affect whether we cache the response to any of the other redirected requests? I don't think the number of redirections should affect caching whatsoever if the concerns are properly isolated. How have you confirmed whether or not this patch resolves your issue? |
In the state_read_server_response_header(), When redirection_tries == t_state.txn_conf->number_of_redirections, enable_redirection is set to false, but it should be true at this point. enable_redirection == false will cause s->cache_info.action = CACHE_DO_NO_ACTION in HttpTransact::handle_forward_server_connection_open, which in turn leads to failure when adding a cache consumer in perform_cache_write_action. |
|
Hi. I think there is something missing here, this change alone may not fix all things, as this will break some other stuffs. Would it be possible to add an autest for this case? |
|
From my local test, the master and 10.1.x branch doesn't have the issue. It looks like the solution is #11542 + #12215. |
|
This is only an issue on the 9.2.x branch and this PR is for master where the issue doesn't exist. |
|
This issue is also related: #10955. We are going to keep this issue open to track the bug and close others as duplicates. |
Fix: [ATS 9.2.x: 200 response after 302 not cached]
With backport markers: