Replies: 2 comments 3 replies
|
I'm a bit hesitant to remove compression for specific responses (e.g a PNG file created with ZLEVEL=1, won't be compressed). I think it might be better to just remove any middleware https://github.com/developmentseed/titiler/blob/master/titiler/main.py#L48-L58 and let the users do what they want from here. |
0 replies
Your analysis is mostly correct, except you miss that the response is still compressed on firefox, just with gzip encoding instead of brotli. When Line 57 in d93b14a |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When we use tile endpoint
/{z}/{x}/{y}.pngin any web map clients (e.g. OpenLayers but it is easy to reproduce just with a simple<img src="..." />tag) browsers setAccept-Encodingheader:This header triggers BrotliMiddleware. That is, the middleware compresses already compressed files (the PNG image format already uses compression internally) increasing its size:
All reactions