From ab8386adea69579f50bdf476e568d6a187005434 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Wed, 23 Aug 2023 02:10:57 +0900 Subject: [PATCH] Set no-cache on unfurl failure fallback response --- unfurler/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/unfurler/src/index.ts b/unfurler/src/index.ts index e3e8e07eb..8841548ca 100644 --- a/unfurler/src/index.ts +++ b/unfurler/src/index.ts @@ -251,6 +251,7 @@ class Server { if (!img) { // send local fallback image file + res.set('Cache-control', 'no-cache'); res.sendFile(nodejsPath.join(__dirname, matchedRoute.fallbackImg)); } else { res.contentType('image/png');