定制 aranw/etags-middleware 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aranw/etags-middleware

Composer 安装命令:

composer require aranw/etags-middleware

包简介

ETags HttpKernelInterface Middleware

README 文档

README

A HttpKernelInterface middleware for adding ETag headers based on response content. This package should work with StackPHP HttpKernelInterface Frameworks.

Install

Via Composer

{
    "require": {
        "aranw/etags-middleware": "dev-master"
    }
}

Example

Silex example

<?php

$app = new Silex\Application();

$app->get('/', function () {
    return 'Hello World';
});

$stack = new Stack\Builder();
$stack->push('Aranw\ETagsMiddleware\ETags');

$app = $stack->resolve($app);

Usage

Currently you can either install this using the provided Laravel Service Provider or by using the StackPHP's Builder class like the example above.

Todo

This is still in its earliest stages of development, and below is a list of issues that still need resolving:

  • Add tests
  • Explore usage of Last-Modified header and how it can be added to work in this package and how it affects the ETag header
  • Add more service providers for other frameworks
  • Expore usage of custom options to provide ability to exclude or include URLs, or URL Regex Patterns

Inspiration

Inspiration from rack etag middleware

统计信息

  • 总下载量: 10.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-12-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固