diff --git a/server/index.js b/server/index.js index eb158b429416b..e7d7862ed5856 100644 --- a/server/index.js +++ b/server/index.js @@ -352,20 +352,6 @@ export default class Server { return buildId.trim() } - handleBuildId (buildId, res) { - if (this.dev) { - res.setHeader('Cache-Control', 'no-store, must-revalidate') - return true - } - - if (buildId !== this.renderOpts.buildId) { - return false - } - - res.setHeader('Cache-Control', 'public, max-age=31536000, immutable') - return true - } - async getCompilationError (page) { if (!this.hotReloader) return @@ -375,9 +361,4 @@ export default class Server { // Return the very first error we found. return errors[0] } - - send404 (res) { - res.statusCode = 404 - res.end('404 - Not Found') - } }