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.9 Replies
Project ID:
641dd1fe-cd0d-4acf-9826-29f2a3bd8c2d
641dd1fe-cd0d-4acf-9826-29f2a3bd8c2d
not even forcing the header in the request seems to make it work
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 -
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
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.
Solution
its working now?!?
ok whatever, I wont touch it
sweet