MiniProfiler / rack-mini-profiler

Profiler for your development and production Ruby rack apps.
MIT License
3.7k stars 402 forks source link

FEATURE: Add optional gzip compression to snapshots transporter requests #469

Closed OsamaSayegh closed 3 years ago

OsamaSayegh commented 3 years ago

This adds optional gzip-compression to requests made by the snapshots transporter. It's off by default and can be changed via the new snapshots_transport_gzip_requests config.

SamSaffron commented 3 years ago

can we just do this all transparently with content-encoding: gzip on the request?

https://serverfault.com/questions/56700/is-it-possible-to-enable-http-compression-for-requests

OsamaSayegh commented 3 years ago

Sorry I'm not sure I follow. Are you asking if it's possible to avoid doing the compression ourselves and let something else handle it by simply indicating we want compression via the content-encoding: gzip header?