New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ssr): support custom link header #4161
Conversation
// Pass with single 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(',')) | ||
res.setHeader('Link', pushAssets.join(', ')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're already using spaces after semicolons in line 64 so we might as well keep it uniform.
Codecov Report
@@ Coverage Diff @@
## dev #4161 +/- ##
==========================================
- Coverage 88.84% 88.79% -0.05%
==========================================
Files 37 37
Lines 1649 1651 +2
Branches 431 432 +1
==========================================
+ Hits 1465 1466 +1
- Misses 157 158 +1
Partials 27 27
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Hi Guys! What do you think about this one? |
@awronski: I'd prefer a function, too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea and if you can add test for it, it will be perfect then😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Adding a test can make it a perfect one!
@tillkruss I'll take care of it :) |
We can close this in favour of #4198 IMO. |
closed in favor of #4198 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Types of changes
Description
It's currently impossible to overwrite or extend the
Link
header sent by Nuxt.We have a middleware that needs to add a couple of
preconnect
links:Checklist: