fix
This commit is contained in:
@@ -38,12 +38,12 @@ export default function (ctx: AppContext, app: Express) {
|
|||||||
) {
|
) {
|
||||||
res.setHeader('Cache-Control', 'no-store')
|
res.setHeader('Cache-Control', 'no-store')
|
||||||
res.setHeader('Location', `https://${ctx.cfg.service.appHostname}`)
|
res.setHeader('Location', `https://${ctx.cfg.service.appHostname}`)
|
||||||
return res.status(302).end()
|
return res.status(200).end()
|
||||||
}
|
}
|
||||||
|
|
||||||
res.setHeader('Cache-Control', `max-age=${(7 * DAY) / SECOND}`)
|
res.setHeader('Cache-Control', `max-age=${(7 * DAY) / SECOND}`)
|
||||||
res.type('html')
|
res.type('html')
|
||||||
res.status(302)
|
res.status(200)
|
||||||
|
|
||||||
if (ctx.cfg.service.safelinkEnabled) {
|
if (ctx.cfg.service.safelinkEnabled) {
|
||||||
const rulePresent: ToolsOzoneSafelinkDefs.Event | undefined =
|
const rulePresent: ToolsOzoneSafelinkDefs.Event | undefined =
|
||||||
|
|||||||
Reference in New Issue
Block a user