mirror of
https://github.com/videojs/video.js.git
synced 2026-11-20 06:29:27 +01:00
Render each blog post and changelog entry through the page's MDX pipeline and ship it as content:encoded, cleaned for feed readers (absolute URLs, no presentation hooks, components flattened to plain HTML). Extract the llms-markdown DOM normalizers into utils/rendered-content.ts so feed items and the Markdown twins share one authoring contract (data-llms-ignore, data-llms-only). Add self links, language, lastBuildDate, image, release categories, authors, and card images; cap feeds at the 20 newest entries; serve them as application/rss+xml with CORS and short reader caching; advertise both feeds on every page. Closes #9286 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LXU532pFoAphw9KaeUxuYj
15 lines
719 B
Plaintext
15 lines
719 B
Plaintext
# Feeds. Static files otherwise go out as `application/xml`, which some readers won't recognize, and browser-based
|
|
# readers can't fetch them cross-origin. Netlify purges its CDN on every deploy, so only the CDN keeps a long TTL;
|
|
# readers that honor `max-age` poll at most every 15 minutes, and revalidate against the ETag Netlify adds.
|
|
/rss.xml
|
|
content-type: application/rss+xml; charset=utf-8
|
|
cache-control: public, max-age=900
|
|
netlify-cdn-cache-control: public, s-maxage=31536000
|
|
access-control-allow-origin: *
|
|
|
|
/changelog/rss.xml
|
|
content-type: application/rss+xml; charset=utf-8
|
|
cache-control: public, max-age=900
|
|
netlify-cdn-cache-control: public, s-maxage=31536000
|
|
access-control-allow-origin: *
|