cache_range_requests plugin: don't require 206 Partial Content reason string#8488
cache_range_requests plugin: don't require 206 Partial Content reason string#8488traeak merged 3 commits intoapache:masterfrom
Conversation
f9e32b2 to
bde0f3a
Compare
|
[approve ci] |
32f5342 to
7590ef3
Compare
|
Since the reason text in the status codes are RFC recommendations (https://datatracker.ietf.org/doc/html/rfc7231#section-6.1 -- The reason phrases listed here are only recommendations |
7590ef3 to
4b3f57e
Compare
That's why the PR is still in draft. If the plugin tries to pass a legit 200 down from a server response it shouldn't retag it 206 while sending it to the client... should have a solution here soon. |
4b3f57e to
0f9ecb8
Compare
09cf30a to
29f1975
Compare
|
[approve ci autest] |
29f1975 to
cd96f81
Compare
cd96f81 to
d48e00c
Compare
* Fixes an issue that leads to an incorrect assumption about the origin status code on cache hit * Fixes the content revalidation case, as original implementation did not recognize the 304
* Fixes an issue that leads to an incorrect assumption about the origin status code on cache hit * Fixes the content revalidation case, as original implementation did not recognize the 304
* Fixes an issue that leads to an incorrect assumption about the origin status code on cache hit * Fixes the content revalidation case, as original implementation did not recognize the 304
|
Cherry-picked to v9.2.x |
* asf/9.2.x: Updated ChangeLog Add proxy.process.hostdb.total_serve_stale (apache#8873) Allow for long Http* error.log lines (apache#8855) mkdfa.c is not being used and doesn't compile with gcc 12.1.1 (apache#8838) Add compatibility define when building with OpenSSL3 (apache#8837) Make post-early-return Au test more robust. (apache#8832) Add support for caching complete responses to the cache range requests plugin (apache#8816) Fixes issues with the CRR plugin introduced in apache#8488 (apache#8828) slice and cache_range_requests: allow header override (apache#8666) (apache#8898) Removed references to the throttle option from the slice plugin. (apache#8373) (apache#8897) cache_range_requests plugin: don't require 206 Partial Content reason string (apache#8488) Improve option processing in cache promote (apache#8501) Change parent_select Init func to constructor (apache#8853) Fix "is is" typos. (apache#8866) Eliminate duplicate words. (apache#8870) money_trace: allow custom header, change span-id gen, opt to create if none (apache#8655) Update HostDBContinuation timeout handling to clear pending queue. (apache#8480) Upgrade to Proxy Verifier 2.4.0. (apache#8884) Change ats_scoped_obj to std::unique_ptr . (apache#8882)
The cache_range_requests plugin expects the parent to have the reason set to "Partial Content" (case insensiitve) in addition to the expecting a 206 status.
Instead of checking for "Partial Content" in the header, this fix tracks origin status for uncached behavior.
For incoming client range request:
Additional changes:
closes #8481