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

Disable compression on file types already compressed (png, jpg) #1828

Closed
hueniverse opened this issue Aug 4, 2014 · 4 comments
Closed

Disable compression on file types already compressed (png, jpg) #1828

hueniverse opened this issue Aug 4, 2014 · 4 comments
Assignees
Labels
Milestone

Comments

@hueniverse
Copy link
Contributor

@hueniverse hueniverse commented Aug 4, 2014

Based on #1676

@jonathanong
Copy link

@jonathanong jonathanong commented Aug 5, 2014

the express compression middleware uses: https://github.com/expressjs/compressible (i think that's what you want)

@58bits
Copy link

@58bits 58bits commented Aug 25, 2014

+1 for this feature. i have an image handling route, that sends out dynamically created images - and send.file(file.jpg) turns on gzip compression. Is there another way to force the hapijs to NOT gzip compress for a specific route?

@hueniverse
Copy link
Contributor Author

@hueniverse hueniverse commented Aug 26, 2014

Not yet.

@hueniverse hueniverse added this to the 6.8.0 milestone Sep 9, 2014
@hueniverse hueniverse self-assigned this Sep 9, 2014
@hueniverse hueniverse closed this in b6c7358 Sep 9, 2014
@58bits
Copy link

@58bits 58bits commented Sep 10, 2014

Awesome - thank you!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants