diff --git a/lib/core/middleware/nuxt.js b/lib/core/middleware/nuxt.js index 6adbe8de5e..bc80a99bcf 100644 --- a/lib/core/middleware/nuxt.js +++ b/lib/core/middleware/nuxt.js @@ -62,7 +62,7 @@ module.exports = async function nuxtMiddleware(req, res, next) { }) // Pass with single Link header - // https://preloadFilesblog.cloudflare.com/http-2-server-push-with-multiple-assets-per-link-header + // https://blog.cloudflare.com/http-2-server-push-with-multiple-assets-per-link-header // https://www.w3.org/Protocols/9707-link-header.html res.setHeader('Link', pushAssets.join(',')) } diff --git a/test/fixtures/spa/nuxt.config.js b/test/fixtures/spa/nuxt.config.js index 79358e6611..9bb39b668f 100644 --- a/test/fixtures/spa/nuxt.config.js +++ b/test/fixtures/spa/nuxt.config.js @@ -2,6 +2,11 @@ module.exports = { mode: 'spa', dev: false, transition: false, + render: { + http2: { + push: true + } + }, build: { stats: false }