This enables PDSs to serve un-compressed responses when the request does not contain accept-encoding. This is done by specifying identity as preferred content-encoding when performing the upstream request. If the upstream server did not respect our priority list, the PDS will decode the response before serving it.
If, at some point we would like to reduce the bandwidth (at the cost of increased CPU usage on both the PDS and AppView(s)), we can set PDS_PROXY_PREFER_COMPRESSED=true. This will cause the PDS to ask for compressed responses with higher priority than uncompressed (identity) payloads.
This enables PDSs to serve un-compressed responses when the request does not contain
accept-encoding
. This is done by specifyingidentity
as preferredcontent-encoding
when performing the upstream request. If the upstream server did not respect our priority list, the PDS will decode the response before serving it.If, at some point we would like to reduce the bandwidth (at the cost of increased CPU usage on both the PDS and AppView(s)), we can set
PDS_PROXY_PREFER_COMPRESSED=true
. This will cause the PDS to ask for compressed responses with higher priority than uncompressed (identity
) payloads.