NuGet package | Owin.Framework.Pages.Html |
GitHub source | OwinFramework.Pages.Html |
Optionally attach this attribute to a page to instruct the output cache middleware how to cache the response. This is only effective if you have installed and configured some output caching middleware.
[IsPage("home", "/")] [CacheOutput("Page", CachePriority.Medium)] public class HomePage { }
The [CacheOutput()] attribute has the following properties you can set.
The value of this property is passed directly to the Output Cache middleware when this page handles the request. The Output Cache middleware can use whatever logic it wants to decide how long to cache data based on this category name.
The value of this property is passed directly to the Output Cache middleware when this page handles the request. The Output Cache middleware can use whatever logic it wants to decide how long to cache data based on this priority level.