Skip to content

Commit

Permalink
js: added rss headers
Browse files Browse the repository at this point in the history
  • Loading branch information
gorenburg committed Dec 28, 2024
1 parent 0abeeaa commit fdf4ebe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/rss.xml/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export async function GET({ fetch }) {
`.trim()
const response = new Response(body)
response.headers.set('Content-Type', 'application/xml')
response.headers.set('Cache-Control', 'max-age=0, s-max-age=1200')
return response
} catch (e) {
error(404, `Could not find sitemap.xml`)
Expand Down

0 comments on commit fdf4ebe

Please sign in to comment.