We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 344d770 commit c2a7766Copy full SHA for c2a7766
server/index.js
@@ -352,20 +352,6 @@ export default class Server {
352
return buildId.trim()
353
}
354
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
367
368
369
async getCompilationError (page) {
370
if (!this.hotReloader) return
371
@@ -375,9 +361,4 @@ export default class Server {
375
// Return the very first error we found.
376
return errors[0]
377
378
379
- send404 (res) {
380
- res.statusCode = 404
381
- res.end('404 - Not Found')
382
383
0 commit comments