diff --git a/website/server/middlewares/cache.js b/website/server/middlewares/cache.js index 4a80985950..228e7d14eb 100644 --- a/website/server/middlewares/cache.js +++ b/website/server/middlewares/cache.js @@ -1,7 +1,7 @@ import onHeaders from 'on-headers'; export function disableCache (req, res, next) { - res.header('Cache-Control', 'no-store'); + res.set('Cache-Control', 'no-store'); // Remove the etag header when caching is disabled // @TODO Unfortunately it's not possible to prevent the creation right now