refactor: remove cache for monitor badge

This commit is contained in:
moonrailgun 2024-04-16 01:19:51 +08:00
parent 49fa50c3cd
commit 10d9438541

View File

@ -34,6 +34,13 @@ monitorRouter.get(
color: 'red', color: 'red',
}); });
res.header('Content-Type', 'image/svg+xml').send(svg); res
.header('Content-Type', 'image/svg+xml')
.header(
'Cache-Control',
'no-cache,max-age=0,no-store,s-maxage=0,proxy-revalidate'
)
.status(200)
.send(svg);
} }
); );