mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 09:25:22 -04:00
set content-type header of sitemap.xml
This commit is contained in:
parent
90eff3f063
commit
be54bc2644
@ -50,6 +50,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
// cache on edge for 12 hours
|
||||
const { res } = context;
|
||||
res.setHeader("cache-control", "s-maxage=43200, stale-while-revalidate=3600");
|
||||
res.setHeader("content-type", "application/xml; charset=utf-8");
|
||||
|
||||
// finally write the resulting XML
|
||||
res.write(await streamToPromise(stream));
|
||||
|
Loading…
x
Reference in New Issue
Block a user