@@ -4947,6 +4947,13 @@ export namespace SetCacheSettingsRule {
49474947 * Whether to strip Set-Cookie headers from the origin response before caching.
49484948 */
49494949 strip_set_cookie?: boolean;
4950+
4951+ /**
4952+ * Controls how cached responses vary based on request headers. `default` is
4953+ * required by the API and applies to any Vary response header that does not have a
4954+ * per-header override.
4955+ */
4956+ vary?: ActionParameters.Vary;
49504957 }
49514958
49524959 export namespace ActionParameters {
@@ -5247,6 +5254,58 @@ export namespace SetCacheSettingsRule {
52475254 */
52485255 match_pattern: string;
52495256 }
5257+
5258+ /**
5259+ * Controls how cached responses vary based on request headers. `default` is
5260+ * required by the API and applies to any Vary response header that does not have a
5261+ * per-header override.
5262+ */
5263+ export interface Vary {
5264+ /**
5265+ * Controls how response Vary headers without a per-header override contribute to
5266+ * the cache key.
5267+ */
5268+ default?: Vary.Default;
5269+
5270+ /**
5271+ * A mapping of lowercase request header names to their vary configuration.
5272+ */
5273+ headers?: { [key: string]: Vary.Headers };
5274+ }
5275+
5276+ export namespace Vary {
5277+ /**
5278+ * Controls how response Vary headers without a per-header override contribute to
5279+ * the cache key.
5280+ */
5281+ export interface Default {
5282+ /**
5283+ * How the header value is treated when building the cache key.
5284+ */
5285+ action: 'bypass' | 'passthrough' | 'normalize';
5286+ }
5287+
5288+ /**
5289+ * Controls how a single request header contributes to the cache key.
5290+ */
5291+ export interface Headers {
5292+ /**
5293+ * How the header value is treated when building the cache key.
5294+ */
5295+ action: 'bypass' | 'passthrough' | 'normalize';
5296+
5297+ /**
5298+ * The set of languages to normalize against. Only valid for the `accept-language`
5299+ * header.
5300+ */
5301+ languages?: Array<string>;
5302+
5303+ /**
5304+ * The set of media types to normalize against. Only valid for the `accept` header.
5305+ */
5306+ media_types?: Array<string>;
5307+ }
5308+ }
52505309 }
52515310
52525311 /**
@@ -5459,6 +5518,13 @@ export namespace SetCacheSettingsRuleParam {
54595518 * Whether to strip Set-Cookie headers from the origin response before caching.
54605519 */
54615520 strip_set_cookie?: boolean;
5521+
5522+ /**
5523+ * Controls how cached responses vary based on request headers. `default` is
5524+ * required by the API and applies to any Vary response header that does not have a
5525+ * per-header override.
5526+ */
5527+ vary?: ActionParameters.Vary;
54625528 }
54635529
54645530 export namespace ActionParameters {
@@ -5759,6 +5825,58 @@ export namespace SetCacheSettingsRuleParam {
57595825 */
57605826 match_pattern: string;
57615827 }
5828+
5829+ /**
5830+ * Controls how cached responses vary based on request headers. `default` is
5831+ * required by the API and applies to any Vary response header that does not have a
5832+ * per-header override.
5833+ */
5834+ export interface Vary {
5835+ /**
5836+ * Controls how response Vary headers without a per-header override contribute to
5837+ * the cache key.
5838+ */
5839+ default?: Vary.Default;
5840+
5841+ /**
5842+ * A mapping of lowercase request header names to their vary configuration.
5843+ */
5844+ headers?: { [key: string]: Vary.Headers };
5845+ }
5846+
5847+ export namespace Vary {
5848+ /**
5849+ * Controls how response Vary headers without a per-header override contribute to
5850+ * the cache key.
5851+ */
5852+ export interface Default {
5853+ /**
5854+ * How the header value is treated when building the cache key.
5855+ */
5856+ action: 'bypass' | 'passthrough' | 'normalize';
5857+ }
5858+
5859+ /**
5860+ * Controls how a single request header contributes to the cache key.
5861+ */
5862+ export interface Headers {
5863+ /**
5864+ * How the header value is treated when building the cache key.
5865+ */
5866+ action: 'bypass' | 'passthrough' | 'normalize';
5867+
5868+ /**
5869+ * The set of languages to normalize against. Only valid for the `accept-language`
5870+ * header.
5871+ */
5872+ languages?: Array<string>;
5873+
5874+ /**
5875+ * The set of media types to normalize against. Only valid for the `accept` header.
5876+ */
5877+ media_types?: Array<string>;
5878+ }
5879+ }
57625880 }
57635881
57645882 /**
@@ -14295,6 +14413,13 @@ export declare namespace RuleCreateParams {
1429514413 * Whether to strip Set-Cookie headers from the origin response before caching.
1429614414 */
1429714415 strip_set_cookie?: boolean;
14416+
14417+ /**
14418+ * Controls how cached responses vary based on request headers. `default` is
14419+ * required by the API and applies to any Vary response header that does not have a
14420+ * per-header override.
14421+ */
14422+ vary?: ActionParameters.Vary;
1429814423 }
1429914424
1430014425 export namespace ActionParameters {
@@ -14595,6 +14720,58 @@ export declare namespace RuleCreateParams {
1459514720 */
1459614721 match_pattern: string;
1459714722 }
14723+
14724+ /**
14725+ * Controls how cached responses vary based on request headers. `default` is
14726+ * required by the API and applies to any Vary response header that does not have a
14727+ * per-header override.
14728+ */
14729+ export interface Vary {
14730+ /**
14731+ * Controls how response Vary headers without a per-header override contribute to
14732+ * the cache key.
14733+ */
14734+ default?: Vary.Default;
14735+
14736+ /**
14737+ * A mapping of lowercase request header names to their vary configuration.
14738+ */
14739+ headers?: { [key: string]: Vary.Headers };
14740+ }
14741+
14742+ export namespace Vary {
14743+ /**
14744+ * Controls how response Vary headers without a per-header override contribute to
14745+ * the cache key.
14746+ */
14747+ export interface Default {
14748+ /**
14749+ * How the header value is treated when building the cache key.
14750+ */
14751+ action: 'bypass' | 'passthrough' | 'normalize';
14752+ }
14753+
14754+ /**
14755+ * Controls how a single request header contributes to the cache key.
14756+ */
14757+ export interface Headers {
14758+ /**
14759+ * How the header value is treated when building the cache key.
14760+ */
14761+ action: 'bypass' | 'passthrough' | 'normalize';
14762+
14763+ /**
14764+ * The set of languages to normalize against. Only valid for the `accept-language`
14765+ * header.
14766+ */
14767+ languages?: Array<string>;
14768+
14769+ /**
14770+ * The set of media types to normalize against. Only valid for the `accept` header.
14771+ */
14772+ media_types?: Array<string>;
14773+ }
14774+ }
1459814775 }
1459914776
1460014777 /**
@@ -19484,6 +19661,13 @@ export declare namespace RuleEditParams {
1948419661 * Whether to strip Set-Cookie headers from the origin response before caching.
1948519662 */
1948619663 strip_set_cookie?: boolean;
19664+
19665+ /**
19666+ * Controls how cached responses vary based on request headers. `default` is
19667+ * required by the API and applies to any Vary response header that does not have a
19668+ * per-header override.
19669+ */
19670+ vary?: ActionParameters.Vary;
1948719671 }
1948819672
1948919673 export namespace ActionParameters {
@@ -19784,6 +19968,58 @@ export declare namespace RuleEditParams {
1978419968 */
1978519969 match_pattern: string;
1978619970 }
19971+
19972+ /**
19973+ * Controls how cached responses vary based on request headers. `default` is
19974+ * required by the API and applies to any Vary response header that does not have a
19975+ * per-header override.
19976+ */
19977+ export interface Vary {
19978+ /**
19979+ * Controls how response Vary headers without a per-header override contribute to
19980+ * the cache key.
19981+ */
19982+ default?: Vary.Default;
19983+
19984+ /**
19985+ * A mapping of lowercase request header names to their vary configuration.
19986+ */
19987+ headers?: { [key: string]: Vary.Headers };
19988+ }
19989+
19990+ export namespace Vary {
19991+ /**
19992+ * Controls how response Vary headers without a per-header override contribute to
19993+ * the cache key.
19994+ */
19995+ export interface Default {
19996+ /**
19997+ * How the header value is treated when building the cache key.
19998+ */
19999+ action: 'bypass' | 'passthrough' | 'normalize';
20000+ }
20001+
20002+ /**
20003+ * Controls how a single request header contributes to the cache key.
20004+ */
20005+ export interface Headers {
20006+ /**
20007+ * How the header value is treated when building the cache key.
20008+ */
20009+ action: 'bypass' | 'passthrough' | 'normalize';
20010+
20011+ /**
20012+ * The set of languages to normalize against. Only valid for the `accept-language`
20013+ * header.
20014+ */
20015+ languages?: Array<string>;
20016+
20017+ /**
20018+ * The set of media types to normalize against. Only valid for the `accept` header.
20019+ */
20020+ media_types?: Array<string>;
20021+ }
20022+ }
1978720023 }
1978820024
1978920025 /**
0 commit comments