Skip to content

Conversation

@masaori335
Copy link
Contributor

During #11975 test, we found that new configs doesn't work as expected if other plugins (like cache_range_request) run first and remove Range header from client request.

Also, @vmamidi wants to send both of Range and Accept-Encoding headers to allow origin server to return "partial content of compressed content".

This PR clarify name of current options and add a new option to do not compress partial object.

@masaori335 masaori335 added the compress compress plugin label Mar 24, 2025
@masaori335 masaori335 added this to the 10.2.0 milestone Mar 24, 2025
@masaori335 masaori335 self-assigned this Mar 24, 2025
}

// check Partial Object is transformable
if (host_configuration->range_request_ctl() == RangeRequestCtrl::NO_COMPRESSION) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block restores code prior to the PR #11975 and add another check of Content-Range header in server response. Because cache_range_request might remove Range header from client request.
https://github.com/apache/trafficserver/pull/11975/files#diff-a50782f349c34e95c6c8643b834aaeba685f244f78a645e85a402bbda9012fb6L680-L689

@bryancall bryancall self-requested a review March 24, 2025 22:08
@masaori335
Copy link
Contributor Author

Rebased on the latest master.

@bryancall bryancall self-requested a review May 12, 2025 23:25
@masaori335 masaori335 merged commit 678d786 into apache:master May 25, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this to For v10.1.0 in ATS v10.1.x May 25, 2025
masaori335 added a commit to masaori335/trafficserver that referenced this pull request May 27, 2025
cmcfarlen pushed a commit that referenced this pull request Jun 3, 2025
…12258)

* Couple of coverity fixes. (#12145)

* Fix for CID-1593545: Uninitialized scalar field

* Fix for 1593544 : Unchecked return value from library

(cherry picked from commit d605c6c)

* [compress] Add an option to do not compress partial object (#12121)

(cherry picked from commit 678d786)

---------

Co-authored-by: Damian Meden <dmeden@apache.org>
@cmcfarlen cmcfarlen removed this from ATS v10.1.x Jun 3, 2025
@cmcfarlen cmcfarlen removed this from the 10.2.0 milestone Jun 3, 2025
@cmcfarlen
Copy link
Contributor

This was added to milestone 10.1.x via #12258

@zwoop zwoop added this to the 10.2.0 milestone Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compress compress plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants