Response Caching
Response caching reduces the number of requests a client or proxy makes to a web server. See the Microsoft documentation for details of Response caching in ASP.NET Core and how to implement the Response Caching Middleware.
Modify the Cache-Control
header for Static Files
Cache-Control
header for Static FilesExample class to allow the modification of the Cache-Control
header for static assets by file extension, but excluding Umbraco BackOffice assets.
Register the service in Program.cs
Modify the Cache-Control
header for ImageSharp.Web
Cache-Control
header for ImageSharp.WebFor setting Cache-Control
max-age header for images processed by the ImageSharp middleware, you can set the Umbraco:CMS:Imaging:Cache:BrowserMaxAge
setting.
See the Images Settings article for more information.
Add the Cache-Control
header for rendering using the ResponseCache attribute
Cache-Control
header for rendering using the ResponseCache attributeFor example using a custom Default Controller you can add the ResponseCache attribute to the Index
method
Last updated