-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Proposal: Enable Gzip Compression for Bid Requests in Prebid.js #12973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Related: #9774 |
also related is #12889 |
1 task
We have raised a PR to support GZip Requests feature |
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proposal: Enable Gzip Compression for Bid Requests in Prebid.js
Summary
Over time, the size of OpenRTB (ORTB) bid request payloads in Prebid.js has grown significantly due to the inclusion of consent strings, multiple user IDs, and other metadata. Currently, most bid requests sent by Prebid.js are in plain-text format without any form of compression, even though many bidder servers compress their responses.
Modern browsers support Gzip compression via JavaScript APIs. If Prebid.js utilizes Gzip to compress the request payload (based on bidder configuration), it could reduce the payload size by approximately 45% to 55%. This not only reduces the number of HTTP packets needed but also improves transmission efficiency and performance.
Proposal
Introduce Gzip Support in Prebid.js
Bidder-Level Configuration
enableGzip: true
) should determine whether Gzip is applied to that bidder’s requests.Prebid Server Changes
Avoiding Preflight Requests
Prebid.js avoids adding custom headers like
Content-Encoding
to prevent CORS preflight (OPTIONS) requests. To support Gzip compression without triggering preflight:Content-Encoding
header, append a query parameter to the request URL (e.g.,?gzip=1
) when the payload is compressed.How about using Protobuf?
The text was updated successfully, but these errors were encountered: