Skip to content

Commit

Permalink
CDM-1224 - marked options as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
MarianaStrix committed Sep 13, 2024
1 parent 8e6488b commit 013a4e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/resources/cdn_resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Optional:
- `cache_http_headers` (Block List, Max: 1) Legacy option. Use the response_headers_hiding_policy option instead. (see [below for nested schema](#nestedblock--options--cache_http_headers))
- `cors` (Block List, Max: 1) CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers. (see [below for nested schema](#nestedblock--options--cors))
- `country_acl` (Block List, Max: 1) Country access policy enables control access to content for specified countries. (see [below for nested schema](#nestedblock--options--country_acl))
- `disable_cache` (Block List, Max: 1) Option enables browser caching. When enabled, content caching is completely disabled. (see [below for nested schema](#nestedblock--options--disable_cache))
- `disable_cache` (Block List, Max: 1) Legacy option. Use the edge_cache_settings option instead. (see [below for nested schema](#nestedblock--options--disable_cache))
- `disable_proxy_force_ranges` (Block List, Max: 1) The option allows getting 206 responses regardless settings of an origin source. Enabled by default. (see [below for nested schema](#nestedblock--options--disable_proxy_force_ranges))
- `edge_cache_settings` (Block List, Max: 1) The cache expiration time for CDN servers. (see [below for nested schema](#nestedblock--options--edge_cache_settings))
- `fastedge` (Block List, Max: 1) Allows to configure FastEdge app to be called on different request/response phases. (see [below for nested schema](#nestedblock--options--fastedge))
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cdn_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Optional:
- `cache_http_headers` (Block List, Max: 1) Legacy option. Use the response_headers_hiding_policy option instead. (see [below for nested schema](#nestedblock--options--cache_http_headers))
- `cors` (Block List, Max: 1) CORS header support option adds the Access-Control-Allow-Origin header to responses from CDN servers. (see [below for nested schema](#nestedblock--options--cors))
- `country_acl` (Block List, Max: 1) Country access policy enables control access to content for specified countries. (see [below for nested schema](#nestedblock--options--country_acl))
- `disable_cache` (Block List, Max: 1) Option enables browser caching. When enabled, content caching is completely disabled. (see [below for nested schema](#nestedblock--options--disable_cache))
- `disable_cache` (Block List, Max: 1) Legacy option. Use the edge_cache_settings option instead. (see [below for nested schema](#nestedblock--options--disable_cache))
- `disable_proxy_force_ranges` (Block List, Max: 1) The option allows getting 206 responses regardless settings of an origin source. Enabled by default. (see [below for nested schema](#nestedblock--options--disable_proxy_force_ranges))
- `edge_cache_settings` (Block List, Max: 1) The cache expiration time for CDN servers. (see [below for nested schema](#nestedblock--options--edge_cache_settings))
- `fastedge` (Block List, Max: 1) Allows to configure FastEdge app to be called on different request/response phases. (see [below for nested schema](#nestedblock--options--fastedge))
Expand Down
4 changes: 2 additions & 2 deletions gcore/resource_gcore_cdn_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ var (
},
},
},
"disable_cache": {
"disable_cache": { // deprecated in favor of edge_cache_settings
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Description: "Option enables browser caching. When enabled, content caching is completely disabled.",
Description: "Legacy option. Use the edge_cache_settings option instead.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"enabled": {
Expand Down

0 comments on commit 013a4e4

Please sign in to comment.