Cache header data passthrough #2

Open
opened 2026-06-01 04:19:11 +00:00 by h · 0 comments
Owner

Currently, even clients capable of caching RSS feeds are unable to do so. This is an issue, especially since querying the RSS feed endpoint indicates that Google wishes for them to be cached for 15 minutes, and additionally caches them internally. To solve this, it may be worth trying to provide the Expires timestamp from the upstream to the client, at least in production deployments.

It is worth noting that an ideal production deployment would have a caching reverse proxy both between the client and ytrss deployment and between the ytrss deployment and YouTube service, so this feature would improve the effectiveness of caching in that case, as a stale RSS feed served by the local or provider-side YouTube reverse proxy would not have its modified form cached by the ytrss reverse proxy for longer than actually necessary.

Currently, even clients capable of caching RSS feeds are unable to do so. This is an issue, especially since querying the RSS feed endpoint indicates that Google wishes for them to be cached for 15 minutes, and additionally caches them internally. To solve this, it may be worth trying to provide the `Expires` timestamp from the upstream to the client, at least in production deployments. It is worth noting that an ideal production deployment would have a caching reverse proxy both between the client and ytrss deployment and between the ytrss deployment and YouTube service, so this feature would improve the effectiveness of caching in that case, as a stale RSS feed served by the local or provider-side YouTube reverse proxy would not have its modified form cached by the ytrss reverse proxy for longer than actually necessary.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
h/ytrss#2
No description provided.