Comments (7)
@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.
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.
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.
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.
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.
This seems to have struck @nicosomb this evening.
from vagrant-spk.
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)
- Question: Advice on a node app using Yarn? HOT 5
- Clarify whether packaging should be done locally or on sandstorm server via ssh connection HOT 2
- `vagrant-spk pack` failure on buster when including /bin/bash HOT 2
- vagrant-spk pack fails with "invalid cross-device link"
- Key not found in keyring when trying to package a forked app. HOT 3
- Error on running vagrant-spk vm up on a new machine. HOT 4
- We should add `vagrant-spk unpack` HOT 4
- lemp stack: support upgrading from older versions of mysql when the grain shut down uncleanly. HOT 4
- Protocol Error when symlinking in the app folder on Windows HOT 3
- Add a simple method to add powerbox-http-proxy HOT 6
- Create or designate test apps for Node, Meteor, and Go stacks HOT 3
- Update components used in Windows build HOT 2
- Windows Defender is flagging as a PUA HOT 3
- npm install largely does not work within Vagrant
- Cannot complete packaging tutorial - Mysql repo signatures not signed HOT 3
- Strategy for upgrading MySQL 5.7 to 8.0? HOT 3
- Should we move env folder of uwsgi stack out of /opt/app? HOT 3
- Sandstorm doesn't restart next "vm up" HOT 4
- vagrant-spk pack: No such file or directory: gpg HOT 1
- Create a workerd stack HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-spk.