Class ResponseCachingPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.waa.model.ResponseCachingPolicy.Builder
-
- Enclosing class:
- ResponseCachingPolicy
public static class ResponseCachingPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseCachingPolicy
build()
ResponseCachingPolicy.Builder
copy(ResponseCachingPolicy model)
ResponseCachingPolicy.Builder
isResponseHeaderBasedCachingEnabled(Boolean isResponseHeaderBasedCachingEnabled)
When false, responses will not be cached by the backend based on response headers.
-
-
-
Method Detail
-
isResponseHeaderBasedCachingEnabled
public ResponseCachingPolicy.Builder isResponseHeaderBasedCachingEnabled(Boolean isResponseHeaderBasedCachingEnabled)
When false, responses will not be cached by the backend based on response headers.When true, responses that contain one of the supported cache control headers will be cached according to the values specified in the cache control headers.
The "X-Accel-Expires" header field sets caching time of a response in seconds. The zero value disables caching for a response. If the value starts with the @ prefix, it sets an absolute time in seconds since Epoch, up to which the response may be cached.
If the header does not include the "X-Accel-Expires" field, parameters of caching may be set in the header fields "Expires" or "Cache-Control".
If the header includes the "Set-Cookie" field, such a response will not be cached.
If the header includes the "Vary" field with the special value "*", such a response will not be cached. If the header includes the "Vary" field with another value, such a response will be cached taking into account the corresponding request header fields.
- Parameters:
isResponseHeaderBasedCachingEnabled
- the value to set- Returns:
- this builder
-
build
public ResponseCachingPolicy build()
-
copy
public ResponseCachingPolicy.Builder copy(ResponseCachingPolicy model)
-
-