Response Caching Middleware — Config Cache-Control max-age per Content-Type #3361
Labels
area-middleware
Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares
feature-response-caching
How, with Response Caching in Middleware, can we configure:
Cache-Control
'smax-age
perContent-Type
?Location
?With
Microsoft.AspNetCore.Builder.StaticFileOptions
, we can use if/else/switch, but how to do the same thing withMicrosoft.Net.Http.Headers.CacheControlHeaderValue()
The text was updated successfully, but these errors were encountered: