Gaar.EntityTags
1.0.0
dotnet add package Gaar.EntityTags --version 1.0.0
NuGet\Install-Package Gaar.EntityTags -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Gaar.EntityTags" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Gaar.EntityTags --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Gaar.EntityTags, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Gaar.EntityTags as a Cake Addin
#addin nuget:?package=Gaar.EntityTags&version=1.0.0
// Install Gaar.EntityTags as a Cake Tool
#tool nuget:?package=Gaar.EntityTags&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Gaar.EntityTags
Easy handling of Etags with MVC attribute
How to
- Add EntityTagAttribute to functions in controller to add Etag to the response
- Call EntityTagHelper.UpdateEtagValueInCache() to refresh the Etag value
- Call EntityTagHelper.GetEtagValueInCache() to get current Etag value
- Both functions has default parameter to spesify cache key
C# [EntityTag] public string GetSomeData() { ... logic ... }
Web.Config - if not auto included <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Expose-Headers" value="ETag, Retry-After"/> </customHeaders> </httpProtocol> </system.webServer>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Microsoft.AspNet.Mvc (>= 5.2.7)
- Microsoft.AspNet.Razor (>= 3.2.7)
- Microsoft.AspNet.WebPages (>= 3.2.7)
- Microsoft.Web.Infrastructure (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 227 | 1/2/2022 |