bluesky-social / atproto

Social networking technology created by Bluesky
Other
7.29k stars 514 forks source link

Default to unencoded responses #2834

Closed matthieusieben closed 1 month ago

matthieusieben commented 2 months ago

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.