web3-is-going-great icon indicating copy to clipboard operation
web3-is-going-great copied to clipboard

Avoid gzipping RSS feed unless requested

Open molly opened this issue 2 years ago • 7 comments

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

molly avatar Jan 29 '22 04:01 molly

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

dzmitry-kankalovich avatar Feb 04 '22 13:02 dzmitry-kankalovich

👋 is this being worked on? I would like to give this a shot during my free time!

causztic avatar May 17 '22 01:05 causztic

Not really—feel free to take a stab at it! I think it's a next.js thing.

molly avatar May 17 '22 01:05 molly

oops, wrong button

molly avatar May 17 '22 01:05 molly

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

causztic avatar May 17 '22 11:05 causztic

Yes, this is deployed on Cloud Run.

molly avatar May 17 '22 16:05 molly

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!

taviso avatar Sep 05 '22 15:09 taviso