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

Add gzip encoding by default #251

Closed
wants to merge 1 commit into from

Conversation

peterkeung
Copy link

@peterkeung peterkeung commented Jan 9, 2018

Page speed best practices means we should add gzip encoding by default

@andrerom
Copy link
Contributor

andrerom commented Jan 10, 2018

If we do this, it should add to nginx as well if possible

Also: We need to adapt Varnish config for this right?

EDIT: However unsure how Varnish will behave with this, might be better to document usage of this for the front facing node facing the web, like nginx tsl proxy for instance. Or?


# Enable gzip encoding
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript application/javascript text/javascript text/plain text/html text/xml application/xml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides lack of config for nginx, should also omit html here as it should not be used in combination with https. (ref: BREACH/CRIME)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I've broken this out with a comment.

@andrerom
Copy link
Contributor

Closed in favour of #375

@andrerom andrerom closed this Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants