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

Activate response compression in application.yml #36

Open
datazuul opened this issue Jan 8, 2019 · 0 comments
Open

Activate response compression in application.yml #36

datazuul opened this issue Jan 8, 2019 · 0 comments

Comments

@datazuul
Copy link
Contributor

datazuul commented Jan 8, 2019

compression of responses (e.g. json of manifest) reduces traffic. in cases where a webserver is in front of hymir, compression should be done there. nonetheless compression reduces cache storage if webserver caches responses from application (e.g. with nginx in front of hymir)

see https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html

server.compression.enabled=false # Whether response compression is enabled.
server.compression.excluded-user-agents= # Comma-separated list of user agents for which responses should not be compressed.
server.compression.mime-types=text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml # Comma-separated list of MIME types that should be compressed.
server.compression.min-response-size=2KB # Minimum "Content-Length" value that is required for compression to be performed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant