Default generated Varnish configuration prevents using of HTTP2 Server Push.
See preconditions
Link headers sent by the application should be in the response. Example: Link: <https://magento2-domain.org/static/_cache/merged/89e1e4264a5da4c028da48f231925246.js>; rel=preload; as=scriptunset resp.http.Link; in Varnish configuration file.@boldhedgehog thank you for your feedback.
Please identify which version of Magento you are running.
@veloraven Updated the preconditions
@boldhedgehog thank you for quick update.
Please report EE issues via the Support portal of your account or Partner portal if you are a partner reporting on behalf of a merchant.
Github is intended for Community edition reports given no account management for CE users. This will allow for proper tracking of issues at the account level.
@veloraven this is reproduced on the CE as well, I just checked it.
sub vcl_deliver {
if (resp.http.X-Magento-Debug) {
if (resp.http.x-varnish ~ " ") {
set resp.http.X-Magento-Cache-Debug = "HIT";
} else {
set resp.http.X-Magento-Cache-Debug = "MISS";
}
} else {
unset resp.http.Age;
}
unset resp.http.X-Magento-Debug;
unset resp.http.X-Magento-Tags;
unset resp.http.X-Powered-By;
unset resp.http.Server;
unset resp.http.X-Varnish;
unset resp.http.Via;
unset resp.http.Link; # <<<<<<<<<<<<<<< this line causes the issue
}
@boldhedgehog did you submit this issue via portal as well? I ask just for avoiding duplicates in our internal system. We can leave this issue here however it is better to report EE issues via portals.
@veloraven No, the issue was not reported to EE support, as it was not urgent. I intentionally placed it here, so it would be known to the community in case someone wanted to play with the Server Push.
@boldhedgehog thank you for update.
@boldhedgehog, thank you for your report.
We've created internal ticket(s) MAGETWO-81442 to track progress on the issue.
Can this line just be removed? Is there any known drawback or side effect of this?
Most helpful comment
@veloraven this is reproduced on the CE as well, I just checked it.