KestrunResponse.ApplyCachingHeaders method
Adds caching headers to the response based on the provided CacheControlHeaderValue options.
public void ApplyCachingHeaders(HttpResponse response)
| parameter | description |
|---|---|
| response | The HTTP response to apply caching headers to. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when options is null. |
See Also
- class KestrunResponse
- namespace Kestrun.Models