web3-is-going-great
web3-is-going-great copied to clipboard
Avoid gzipping RSS feed unless requested
Browsers should send Accept-Encoding: gzip
in which case it's okay to gzip, but there's at least one RSS reader that chokes on gzipped XML: https://twitter.com/xarph/status/1486955535110848515
Hit the same problem and was breaking my head over it.
The RSS endpoint breaks protocol by sending gzip unconditionally
Simple test:
# this works
curl https://web3isgoinggreat.com/feed.xml --compressed
# this timeouts
curl https://web3isgoinggreat.com/feed.xml
👋 is this being worked on? I would like to give this a shot during my free time!
Not really—feel free to take a stab at it! I think it's a next.js thing.
oops, wrong button
From looking at the codebase, I am assuming that this application is deployed using Cloud Run?
It looks like they have since removed content-encoding response headers, so we'd have to manage it ourselves... which is a conundrum since nextjs recommends it to be managed upstream
Yes, this is deployed on Cloud Run.
FYI, I think I'm hitting this issue with the newsboat RSS reader, it always just returns "feed contains no items". I was wondering why I was never getting updates!