Skip to content
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

Provide an option to compress HTTP responses #1938

Open
ameshkov opened this issue Dec 4, 2024 · 0 comments
Open

Provide an option to compress HTTP responses #1938

ameshkov opened this issue Dec 4, 2024 · 0 comments

Comments

@ameshkov
Copy link
Member

ameshkov commented Dec 4, 2024

Issue Details

When filtering HTML pages CoreLibs decompresses them in order to filter the content. This is perfectly okay when the filtering takes place locally.

However, when the user is using AdGuard CLI on a server as a proxy server and routes the traffic through that proxy, serving uncompressed HTML pages (and local.adguard.org content as well), this creates additional bandwidth usage that we would better avoid.

Proposed solution

Provide an option to compress HTTP responses. If the option is enabled, all HTTP responses served by CLI, should be compressed. Mainly, this is important for the responses that we previously decompressed and for local.adguard.org responses.

Alternative solution

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants