项目作者: aloji

项目描述 :
ASP.NET Core ETag middleware
高级语言: C#
项目地址: git://github.com/aloji/ResponseEtag.git
创建时间: 2018-08-07T15:20:23Z
项目社区:https://github.com/aloji/ResponseEtag

开源协议:

下载


Build Status

ASP.NET Core - HTTP ETag Middleware

By Mozilla

The ETag HTTP response header is an identifier for a specific version of a resource. It allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed.

Configuration

The following code shows how to enable the Response ETag Middleware

```csharp
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddResponseETag();
}

  1. public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  2. {
  3. app.UseResponseETag();
  4. }

}