diff --git a/packages/server/src/main/resources/diagram-resource.ts b/packages/server/src/main/resources/diagram-resource.ts index 642cbd01..d8fcfb8e 100644 --- a/packages/server/src/main/resources/diagram-resource.ts +++ b/packages/server/src/main/resources/diagram-resource.ts @@ -28,7 +28,12 @@ export class DiagramResource { '', ); - res.setHeader('Content-Type', 'image/svg+xml'); + res.set({ + 'Content-Type': 'image/svg+xml', + 'Cache-Control': 'no-cache', + Expires: new Date(Date.now() - 36000 * 1000).toUTCString(), + }); + return res.send(diagramSvgWhiteBackground); }