opegento/module-early-hints-103

在 Magento 计算渲染的同时,预加载静态文件的 Early Hints 头部

安装: 5

依赖: 0

建议者: 0

安全: 0

星标: 4

关注者: 12

分支: 0

开放问题: 0

类型:magento2-module

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;
  }

支持

向问题跟踪器提出新的 请求

作者

  • Opengento 社区 - 负责人
    • Twitter Follow

许可证

本项目采用 MIT 许可证 - 请参阅 LICENSE 详细信息。