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

Old documentation changes? disabling gzip compression in 3.9.x #11469

Open
laffer1 opened this issue Dec 24, 2024 · 0 comments
Open

Old documentation changes? disabling gzip compression in 3.9.x #11469

laffer1 opened this issue Dec 24, 2024 · 0 comments

Comments

@laffer1
Copy link

laffer1 commented Dec 24, 2024

Issue description

I recently discovered that the old documentation is broken on the micronaut site for 3.9.x versions. Further, the current documentation discusses disabling http compression with netty but that doesn't work with 3.9.x.

I figured out that one can create a custom HttpCompressionStrategy to workaround the lack of compression-level or compression-threshold checks i the old releases as so

  @Primary
  @Singleton
  public class CustomHttpCompressionStrategy implements HttpCompressionStrategy {
    public boolean shouldCompress(io.netty.handler.codec.http.HttpResponse response) {
        return false;
    }

    public int getCompressionLevel() {
      return 0;
    }
  }

It would be nice if the documentation was restored for the old versions and this hint was added.

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

No branches or pull requests

1 participant