From f757e645b7000e60383b8bdea55e505a42863e54 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Thu, 16 Apr 2020 17:17:17 +0200 Subject: [PATCH] disable caching for the /status api route --- website/server/controllers/api-v3/status.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/server/controllers/api-v3/status.js b/website/server/controllers/api-v3/status.js index c957388d59..fe42c417eb 100644 --- a/website/server/controllers/api-v3/status.js +++ b/website/server/controllers/api-v3/status.js @@ -1,3 +1,7 @@ +import { + disableCache, +} from '../../middlewares/cache'; + const api = {}; /** @@ -15,6 +19,8 @@ const api = {}; api.getStatus = { method: 'GET', url: '/status', + // explicitly disable caching so that the server is always checked + middlewares: [disableCache], async handler (req, res) { res.respond(200, { status: 'up',