PostHog / posthog-js-lite

Reimplementation of posthog-js to be as light and modular as possible.
https://posthog.com/docs/libraries
MIT License
70 stars 36 forks source link

Support `gzip` compression #254

Open marandaneto opened 3 months ago

marandaneto commented 3 months ago

Is your feature request related to a problem?

When using captureMode=form, the compression is lz64 (base64). When using captureMode=json, there's no compression.

Describe the solution you'd like

When using captureMode=json, we could either use gzip by default if possible, or offer another config to allow or not allow the gzip compression. JS SDK has an option disable_compression: boolean.

Describe alternatives you've considered

Related sub-libraries

Additional context

Thank you for your feature request – we love each and every one!