-
Notifications
You must be signed in to change notification settings - Fork 671
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
Why using binary for 'application/javascript' and alike? #131
Comments
Excellent question. This is required to work with gzip compression, which the example uses. |
That is what I assumed, you use the Too bad it is required to manually list all MIME types because if everything is compressed, a simple |
Agreed. I plan on making that change.
…On Fri, Mar 9, 2018, 11:08 PM Vadorequest ***@***.***> wrote:
That is what I assumed, you use the compression express package/plugin.
Too bad it is required to manually list all MIME types because if
everything is compressed, a simple * would be enough, since everything
will be sent as gzip anyway.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABy6l532uUPyn4s15QWiOC0_Nfr0JMf0ks5tcn7dgaJpZM4SkDt1>
.
|
@brettstack I believe this is related to #70 |
Added in #136 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't understand why you use a binary mime type for
I think it makes sense for
image/*
(because png/jpg are treated as binary format by API Gateway and won't be displayed without this) but I don't get why you use it onapplication/json
orapplication/javascript
at all, and I don't know what repercussions this may have on the behaviour of an application.Could you explain the reason behind this? I would guess something like the following would be enough.
Thank you!
The text was updated successfully, but these errors were encountered: