From c5ed5f74cdbcfea78a4284f8f53ac7458534ccca Mon Sep 17 00:00:00 2001 From: Anthony Benites <104385099+ec2sw@users.noreply.github.com> Date: Mon, 27 Jun 2022 18:54:43 -0400 Subject: [PATCH] fix: no cache for any API endpoint --- src/middleware.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/middleware.js b/src/middleware.js index 01a7610d..869b224d 100644 --- a/src/middleware.js +++ b/src/middleware.js @@ -52,6 +52,11 @@ app.use(async function (req, res, next) { } }); +app.use(function (req, res, next) { + res.set('Cache-control', 'no-store'); + next(); +}) + // Add optional API key if set in .env file app.use(function (req, res, next) { if (API_KEY && API_KEY !== '') {