Cuemon.AspNetCore.Mvc.Filters.Cacheable Namespace
Enable conditional GET requests and HTTP caching for ASP.NET Core MVC controllers using action filters and result filters backed by ETag and last-modified headers. Use this namespace when you need fine-grained HTTP cache validation. Start with HttpCacheableFilter for full cache support, or use HttpEntityTagHeaderFilter and HttpLastModifiedHeaderFilter individually for ETag-only or last-modified-only scenarios.
Availability: .NET 10 and .NET 9
Complements: Microsoft.AspNetCore.Mvc.Filters namespace 🔗
Related: Cuemon.Extensions.AspNetCore.Mvc.Filters.Cacheable namespace 📘
Classes
- HttpCacheableFilter
A filter that will invoke filters implementing the ICacheableObjectResult interface.
- HttpCacheableOptions
Specifies options that is related to the HttpCacheableFilter.
- HttpEntityTagHeaderFilter
A filter that computes the response body and applies an appropriate HTTP Etag header.
- HttpEntityTagHeaderOptions
Specifies options that is related to the HttpEntityTagHeaderFilter.
- HttpLastModifiedHeaderFilter
A filter that applies a HTTP Last-Modified header.
- HttpLastModifiedHeaderOptions
Specifies options that is related to the HttpLastModifiedHeaderFilter.
Interfaces
- ICacheableAsyncResultFilter
A filter tailored to the cacheable flows, that asynchronously surrounds execution of action results successfully returned from an action.