Skip to content

Enable GZIP #64

@nodanaonlyzuul

Description

@nodanaonlyzuul

This was first talked about in #54

curl -sH 'Accept-encoding: gzip' -g http://example.com
# returns compressed garbage :)

curl -sH 'Accept-encoding: gzip' -g http://discovery-api-dev.us-east-1.elasticbeanstalk.com/api/v0.1/request/deliverylocationsbybarcode?barcodes[]=33433035124316
# returns uncompressed text :(

We should enable gzip compression in nginx.
I don't know why elastic beanstalk would default to NOT enabling gzip compression in nginx
but it should be easy to override the .conf file using .ebextensions.

Open Question

Do most HTTP client libraries send "Accept-Encoding: gzip, defalte" by default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions