diff --git a/src/server/router/telemetry.ts b/src/server/router/telemetry.ts index 10db74b..7b026ca 100644 --- a/src/server/router/telemetry.ts +++ b/src/server/router/telemetry.ts @@ -56,7 +56,14 @@ telemetryRouter.get( async (req, res) => { recordTelemetryEvent(req); - res.header('Content-Type', 'image/gif').status(200).send(blankGifBuffer); + res + .header('Content-Type', 'image/gif') + .header( + 'Cache-Control', + 'no-cache,max-age=0,no-store,s-maxage=0,proxy-revalidate' + ) + .status(200) + .send(blankGifBuffer); } ); @@ -81,6 +88,13 @@ telemetryRouter.get( color: 'green', }); - res.header('Content-Type', 'image/svg+xml').status(200).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); } );