compression is not working?

I'm building a Go application with Fiber's compress middleware but for some reason the response is not compressed. I'm sending the accept-encoding headers accordingly but still I get no gzip or brotli response. This works locally and also on another cloud provider.
No description
Solution:
its working now?!?
No description
Jump to solution
9 Replies
Percy
Percy3mo ago
Project ID: 641dd1fe-cd0d-4acf-9826-29f2a3bd8c2d
ThallesComH
ThallesComH3mo ago
641dd1fe-cd0d-4acf-9826-29f2a3bd8c2d
ThallesComH
ThallesComH3mo ago
not even forcing the header in the request seems to make it work
No description
ThallesComH
ThallesComH3mo ago
or maybe there's another check in Fiber on how it decides that it supports encoding I thought that Railway wasn't forwarding the accept-encoding header but it is present, weird, maybe Railway's proxy is decoding it and sending raw? im using this command, if it prints random stuff then its gzip curl -H "Accept-Encoding: gzip" --compressed --raw "<url>" --output -
Brody
Brody3mo ago
interesting, someone else reported this too - https://discord.com/channels/713503345364697088/1271964673721237574 I will look into this Monday, if I don't, yell at me more
Brody
Brody3mo ago
i am unable to reproduce with caddy - https://github.com/railwayapp-templates/monorepo-example/blob/main/frontend/Caddyfile#L30 If you are still seeing this issue, please provide a MRE.
No description
Solution
ThallesComH
ThallesComH3mo ago
its working now?!?
No description
ThallesComH
ThallesComH3mo ago
ok whatever, I wont touch it
Brody
Brody3mo ago
sweet
Want results from more Discord servers?
Add your server