Code Monkey home page Code Monkey logo

Comments (7)

paulproteus avatar paulproteus commented on June 3, 2024

@zarvox if you can +1 +0 -0 -1 this, I'd be happy to hear that.

@jparyani your sanity-check here might be useful too.

from vagrant-spk.

jparyani avatar jparyani commented on June 3, 2024

It's a bit sad to disable gzip everywhere. Is there a way to turn off gzip for only error codes (4xx and 5xx)?

It's worth noting, I would consider this a bug that should probably be fixed in sandstorm-http-bridge. I'm +0 on disabling gzip for now, and then re-enabling it once someone fixes it (see sandstorm-io/sandstorm#289).

from vagrant-spk.

paulproteus avatar paulproteus commented on June 3, 2024

I vaguely feel like the gzipping should be done by WebSession in the Sandstorm platform -- think gzip termination, like TLS termination.

On one hand, apps may want to have opinions about if to gzip a response. On the other hand, I'd be happy enough disabling this in apps and deciding Sandstorm Knows Best.

Thank you for the comment @jparyani ; I can see what you mean that WebSession could be fixed instead. I might gzip off; for now but will think about fixing WebSession instead.

from vagrant-spk.

zarvox avatar zarvox commented on June 3, 2024

I am +1 on disabling gzip in the nginx conf for now to unbreak things, with the understanding that we really ought to fix WebSession to provide the original content of the HTTP response, because the app may rely on that content to present useful context about the failure to the user.

from vagrant-spk.

kentonv avatar kentonv commented on June 3, 2024

Keep in mind that there's two ways gzip is used: as a transfer encoding (where it is applied on-demand) and as a content encoding (where the resource is actually persisted gzipped and served up directly).

Due to historical bugs in browsers, both are represented in practice using Content-Encoding rather than Transfer-Encoding.

If we disable gzip encoding in nginx, I hope that this does not cause it to unzip already-gzipped content. Assuming not, then this seems fine: our own front-end can add gzip, it shouldn't be the app's responsibility.

It is still a bug in sandstorm-http-bridge that error HTML is allowed to be compressed, though.

from vagrant-spk.

paulproteus avatar paulproteus commented on June 3, 2024

This seems to have struck @nicosomb this evening.

from vagrant-spk.

paulproteus avatar paulproteus commented on June 3, 2024

For @kentonv - This will not cause nginx to actively gunzip things - apparently gunzip on; does that, so I think that covers your concerns.

from vagrant-spk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.