SDK reference / Models / Media
CacheRule
Kind: class
Namespace: Egulu.Sdk.Models.Media
A cache rule of one served host (extends the route cache of ADR-0614; ADR-0787 item 9).
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
CreateTime | DateTimeOffset? | createTime | The createTime property |
Enabled | bool? | enabled | The enabled property |
Etag | string? | etag | The etag property |
Hostname | string? | hostname | The host an ingress route of the project serves. |
Name | string? | name | projects/{project}/locations/{location}/cacheRules/{cacheRule}. |
OriginCacheControl | string? | originCacheControl | `HONOUR` (the origin's max-age or s-maxage wins when it names one) or `IGNORE` (the rule's lifetime always applies). Responses that are private or no-store, answered to a request with Authorization, or that set a cookie are never shared, whatever the rule says. |
PathPattern | string? | pathPattern | `/exact`, `/prefix/*`, `*.ext` or `/*` (up to 200 characters; no regular expression). |
Priority | int? | priority | 0 to 1000; the lower runs first, then the longer pattern. |
QueryAllow | List<string>? | queryAllow | The query parameter names kept for `ALLOW_LIST`, at most 10. |
QueryString | string? | queryString | `IGNORE` (the query string is not part of the key), `INCLUDE_ALL` or `ALLOW_LIST`. |
State | string? | state | `PENDING`, `APPLIED` or `ERROR`: the state of the host's rules at the edge. |
StateReason | string? | stateReason | Why the edge has not applied the rules. |
TtlSeconds | int? | ttlSeconds | 0 to 86400 seconds; 0 never caches. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |