ResponseCachingOptions Class

Definition

Options for configuring the ResponseCachingMiddleware.

public ref class ResponseCachingOptions
public class ResponseCachingOptions
type ResponseCachingOptions = class
Public Class ResponseCachingOptions
Inheritance
ResponseCachingOptions

Constructors

ResponseCachingOptions()

Properties

MaximumBodySize

The largest cacheable size for the response body in bytes. The default is set to 64 MB. If the response body exceeds this limit, it will not be cached by the ResponseCachingMiddleware.

SizeLimit

The size limit for the response cache middleware in bytes. The default is set to 100 MB. When this limit is exceeded, no new responses will be cached until older entries are evicted.

UseCaseSensitivePaths

true if request paths are case-sensitive; otherwise false. The default is to treat paths as case-insensitive.

Applies to