diff --git a/src/pages/feed.ts b/src/pages/feed.ts index 9012210..f13f43a 100644 --- a/src/pages/feed.ts +++ b/src/pages/feed.ts @@ -116,3 +116,15 @@ export const GET = async () => { })), }); }; + +// The rss reader may prefetch by using HEAD method. +export const HEAD = async () => { + return new Response('', { + headers: { + Host: import.meta.env.SITE, + 'Content-Type': 'application/xml', + Accept: '*/*', + Connection: 'keep-alive', + }, + }); +};