Skip to content

Conversation

@vmamidi
Copy link
Contributor

@vmamidi vmamidi commented Dec 21, 2024

No description provided.

@vmamidi vmamidi self-assigned this Dec 21, 2024
@JosiahWI JosiahWI added this to the 10.1.0 milestone Dec 23, 2024
Disabled by default. Setting this to true while setting cache to false leads to delivering corrupted content.
Disabled by default.

WARNING! Do NOT set this to true if cache is set to false. This combination will deliver corrupt content.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this really

 if :ts:cv:`proxy.config.http.cache.http` is set to false (0)

Copy link
Contributor

@masaori335 masaori335 Jan 9, 2025

Choose a reason for hiding this comment

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

This cache here is a configuration of compress plugin. https://docs.trafficserver.apache.org/en/10.0.x/admin-guide/plugins/compress.en.html#cache

Config like below generates corrupted content. ( compressed partial content with status code 200 OK )

cache false
range-request true

Also, I want to mention a thing, even if this cache config is true, and range-request is false like below,

cache true
range-request false

once compressed content is cached, response to the Range request will be "partial content of compressed contents", that's probably not what client want. Actually, intention and spec is unclear.

IMO, if a client send both of Accept-Encoding and Range header, we should choose one of them as a workaround. ( I'll file an issue and PR for this )

Copy link
Contributor

Choose a reason for hiding this comment

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

The second case, cache true and range-request false, is covered by #11975

@bneradt bneradt self-requested a review January 6, 2025 23:12
@bneradt
Copy link
Contributor

bneradt commented Jan 6, 2025

In the PR/issue meeting today, we discussed the plugin issuing an ERROR message if this body-corrupting configuration combination is detected.

@masaori335
Copy link
Contributor

Sorry Vijay, doc is updated.

Do NOT set this to none (or true) if the cache config is set to false. This combination will deliver corrupted content.

https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/compress.en.html#range-request

@masaori335 masaori335 closed this Mar 10, 2025
@zwoop zwoop removed this from the 10.2.0 milestone Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants