opegento / module-early-hints-103
在 Magento 计算渲染的同时,预加载静态文件的 Early Hints 头部
0.0.1
2022-03-19 22:23 UTC
This package is not auto-updated.
Last update: 2024-09-22 16:56:57 UTC
README
添加预加载内容头部/Early hints 方法的原型
设置/先决条件
需要 Magento 2 Open Source 或 Commerce 版本。Nginx / Varnish(尚未测试 Apache)
Composer 安装
运行以下 composer 命令
composer require opengento/module-early-hints-103
设置模块
运行以下 magento 命令
bin/magento setup:upgrade
Varnish VCL 文件
sub vcl_backend_response {
if (beresp.http.Surrogate-Control ~ "OpengentoBroadcast/1.0") {
set beresp.do_stream = true;
set beresp.ttl = 0s;
}
支持
向问题跟踪器提出新的 请求。
作者
许可证
本项目采用 MIT 许可证 - 请参阅 LICENSE 详细信息。