Skip to content

Commit c2a7766

Browse files
timneutkensleo
authored andcommittedSep 12, 2018
Remove code that is no longer in use (#5147)
* Remove handleBuildId as it’s being handled in the static files route * Remove dead code
1 parent 344d770 commit c2a7766

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed
 

‎server/index.js

-19
Original file line numberDiff line numberDiff line change
@@ -352,20 +352,6 @@ export default class Server {
352352
return buildId.trim()
353353
}
354354

355-
handleBuildId (buildId, res) {
356-
if (this.dev) {
357-
res.setHeader('Cache-Control', 'no-store, must-revalidate')
358-
return true
359-
}
360-
361-
if (buildId !== this.renderOpts.buildId) {
362-
return false
363-
}
364-
365-
res.setHeader('Cache-Control', 'public, max-age=31536000, immutable')
366-
return true
367-
}
368-
369355
async getCompilationError (page) {
370356
if (!this.hotReloader) return
371357

@@ -375,9 +361,4 @@ export default class Server {
375361
// Return the very first error we found.
376362
return errors[0]
377363
}
378-
379-
send404 (res) {
380-
res.statusCode = 404
381-
res.end('404 - Not Found')
382-
}
383364
}

0 commit comments

Comments
 (0)
Please sign in to comment.