Ruleset Rule Action Parameters Args
Constructors
Properties
List of additional ports that caching can be enabled on.
Custom order for compression algorithms.
Turn on or off Automatic HTTPS Rewrites.
Select which file extensions to minify automatically.
Specify how long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.
Define which components of the request are included or excluded from the cache key Cloudflare uses to store the response in cache.
Mark whether the request's response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).
Content-type header to set with the response. Available values: "application/json", "text/xml", "text/plain", "text/html".
The cookie fields to log.
Turn off all active Cloudflare Apps.
Turn off Real User Monitoring (RUM).
Turn off Zaraz.
TTL (Time to Live) specifies the maximum time to cache a resource in the Cloudflare edge network.
Turn on or off Email Obfuscation.
Serve a redirect based on a bulk list lookup.
Serve a redirect based on the request properties.
Map of request headers to modify.
Rewrite the HTTP Host header.
Turn on or off the Hotlink Protection.
The configuration to use for matched data logging.
Turn on or off Opportunistic Encryption.
Override the IP/TCP destination.
When enabled, Cloudflare will aim to strictly adhere to RFC 7234.
Generate Cloudflare error pages from issues sent from the origin server. When on, error pages will trigger for issues from the origin
A set of overrides to apply to the target ruleset.
The raw response fields to log.
Define a timeout value between two successive read operations to your origin server. Historically, the timeout value between two read options from Cloudflare to an origin server is 100 seconds. If you are attempting to reduce HTTP 524 errors because of timeouts from an origin server, try increasing this timeout value.
The raw request fields to log.
Specify whether or not Cloudflare should respect strong ETag (entity tag) headers. When off, Cloudflare converts strong ETag headers to weak ETag headers.
The response to show when the block is applied.
The transformed response fields to log.
Turn on or off Rocket Loader
Configure the Security Level. Available values: "off", "essentiallyoff", "low", "medium", "high", "underattack".
Turn on or off Server Side Excludes.
Define if Cloudflare should serve stale content while getting the latest content from the origin. If on, Cloudflare will not serve stale content while getting the latest content from the origin.
Override the Server Name Indication (SNI).
The status code to use for the error.
The transformed request fields to log.
URI to rewrite the request to.