Skip to content

Commit

Permalink
Invalidate GitHub cache so that embeddings are not cached (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
farisd16 authored Dec 9, 2024
1 parent 85e4cae commit 754f296
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/server/src/main/resources/diagram-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ export class DiagramResource {
'<svg$1 style="background-color: white;">',
);

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);
}

Expand Down

0 comments on commit 754f296

Please sign in to comment.