缓存:具有各种缓存实用程序的PSR-15中间件

时间:2024-03-08 22:33:47
【文件属性】:

文件名称:缓存:具有各种缓存实用程序的PSR-15中间件

文件大小:11KB

文件格式:ZIP

更新时间:2024-03-08 22:33:47

http middleware cache psr-15 PHP

中间件/缓存 具有以下缓存实用程序的中间件组件: 要求 PHP> = 7.2 安装 该软件包可通过Composer作为安装和自动加载。 composer require middlewares/cache 缓存预防 添加响应头以防止缓存。 在开发环境中有用: Dispatcher :: run ([ new Middlewares \ CachePrevention () ]); 过期 该中间件将Expires和Cache-Control: max-age标头添加到响应中。 您可以为每种模仿类型配置缓存持续时间。 如果未定义,请。 // Use the default configuration $ expires = new Middlewares \ Expires (); // Custom durations $ expires = new Middlewares


【文件预览】:
cache-master
----.github()
--------workflows()
----src()
--------Expires.php(3KB)
--------ClearSiteData.php(1KB)
--------CachePrevention.php(642B)
--------Cache.php(2KB)
--------expires_defaults.php(1KB)
----CONTRIBUTING.md(3KB)
----LICENSE(1KB)
----README.md(4KB)
----CHANGELOG.md(2KB)
----composer.json(1KB)

网友评论