POC for adding preloading content headers / Early hints approach
Magento 2 Open Source or Commerce edition is required. Nginx / Varnish (apache not tested yet)
Run the following composer command:
composer require opengento/module-early-hints-103
Run the following magento command:
bin/magento setup:upgrade
sub vcl_backend_response {
if (beresp.http.Surrogate-Control ~ "OpengentoBroadcast/1.0") {
set beresp.do_stream = true;
set beresp.ttl = 0s;
}
Raise a new request to the issue tracker.
This project is licensed under the MIT License - see the LICENSE details.