mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-04-21 10:45:30 -04:00
update function cache headers
This commit is contained in:
+3
-1
@@ -7,7 +7,9 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
const feed = buildFeed();
|
||||
const { res } = context;
|
||||
|
||||
res.setHeader("content-type", "application/atom+xml");
|
||||
res.setHeader("content-type", "application/atom+xml; charset=utf-8");
|
||||
// cache on edge for one hour
|
||||
res.setHeader("cache-control", "s-maxage=3600, stale-while-revalidate");
|
||||
res.write(feed.atom1());
|
||||
res.end();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user