diff --git a/lib/core/middleware/error.js b/lib/core/middleware/error.js index ff5cd1f5b8..08f5b918e0 100644 --- a/lib/core/middleware/error.js +++ b/lib/core/middleware/error.js @@ -21,6 +21,7 @@ export default function errorMiddleware(err, req, res, next) { res.statusMessage = err.name res.setHeader('Content-Type', type + '; charset=utf-8') res.setHeader('Content-Length', Buffer.byteLength(content)) + res.setHeader('Cache-Control', 'no-cache, no-store, max-age=0, must-revalidate') // Send Response res.end(content, 'utf-8')