From 278f3ad07872d3411c33bfb835afb8a3f88511a5 Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Thu, 25 Jan 2024 02:30:15 -0500 Subject: [PATCH] private cache to stop cloudflare --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 60b019a..9169d0b 100644 --- a/index.ts +++ b/index.ts @@ -39,7 +39,7 @@ app.get('/', (req, res) => { }); app.get('/cache-me.webp', (_, res) => { - res.set('Cache-Control', 'public, max-age=31557600'); // one year + res.set('Cache-Control', 'private, max-age=31557600'); // one year visitCount++; res.sendFile(Path.join(import.meta.dir, 'assets', 'webp', 'cache-me.webp')); });