feat(rss): conditional GET (ETag/If-Modified-Since) for Railway relay#625
Merged
Conversation
When RSS cache expires, send If-None-Match/If-Modified-Since headers on revalidation. Upstream 304 responses refresh the cache timestamp and serve cached body with zero bandwidth, cutting egress ~80-95% for feeds that support conditional GET.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
koala73
added a commit
that referenced
this pull request
Mar 1, 2026
…lay (#625) When RSS cache expires, send If-None-Match/If-Modified-Since headers on revalidation. Upstream 304 responses refresh the cache timestamp and serve cached body with zero bandwidth, cutting egress ~80-95% for feeds that support conditional GET.
matthewvecchione1-ops
pushed a commit
to matthewvecchione1-ops/worldmonitor
that referenced
this pull request
Mar 4, 2026
…lay (koala73#625) When RSS cache expires, send If-None-Match/If-Modified-Since headers on revalidation. Upstream 304 responses refresh the cache timestamp and serve cached body with zero bandwidth, cutting egress ~80-95% for feeds that support conditional GET.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
If-None-Match/If-Modified-Sinceheaders when revalidating expired RSS cache entries in the Railway relay304 Not Modified— refresh cache timestamp and serve cached body with zero bandwidthETagandLast-Modifiedfrom upstream responses in cache entriesFiles changed
scripts/ais-relay.cjs— 3 surgical edits in RSS handler (~25 lines)scripts/ais-relay-rss.test.cjs— 2 new tests (ETag + If-Modified-Since revalidation), updated mock upstream and test proxyTest plan
node --test scripts/ais-relay-rss.test.cjs— 7/7 pass (5 existing + 2 new)node -c scripts/ais-relay.cjs— syntax OKtsc --noEmit— type check passescurl -vRSS endpoint twice after cache expiry — second should showX-Cache: REVALIDATEDfor feeds returning ETag/Last-Modified (e.g. BBC)