dorsetdigital / silverstripe-http2
添加对HTTP2特性的支持
v1.0.1
2020-12-15 16:48 UTC
Requires
- silverstripe/cms: ^4.0
- silverstripe/vendor-plugin: ^1.0
This package is auto-updated.
Last update: 2024-09-14 17:43:05 UTC
README
请注意:此模块提供的功能现在已在另一个模块中提供,该模块还提供了额外的功能:https://github.com/DorsetDigital/silverstripe-enhanced-requirements
此模块将继续存在,但不会进行积极开发,除非是关键错误修复。请从此刻起使用增强需求模块。
添加基本的HTTP2功能,如需求推送
此模块为SilverStripe添加必要的HTTP头部,以在支持HTTP/2推送功能的服务器上启用HTTP/2推送功能。默认情况下,模块将发送包含所有使用Requirements
API添加到站点的CSS和JS文件的头部。
需求
*Silverstripe 4.x
安装
使用 composer require dorsetdigital/silverstripe-http2
安装
用法
添加配置YML文件以启用
---
Name: httptest
---
DorsetDigital\HTTP2\DDMiddleware:
enabled: true