try using meta

This commit is contained in:
Hailey
2025-03-19 11:27:44 -07:00
parent c612fca32a
commit 7731475784
+5 -2
View File
@@ -40,8 +40,11 @@ export default function (ctx: AppContext, app: Express) {
} }
res.setHeader('Cache-Control', `max-age=${(7 * DAY) / SECOND}`) res.setHeader('Cache-Control', `max-age=${(7 * DAY) / SECOND}`)
res.setHeader('Location', url.href) res.type('html')
return res.status(301).end() res.status(200)
return res.send(
`<html><head><meta http-equiv="refresh" content="0; URL='${url.href}'" /></head></html>`,
)
}), }),
) )
} }