|
244 | 244 | "default": "public" |
245 | 245 | }, |
246 | 246 | "expires": { |
247 | | - "type": "string", |
| 247 | + "type": ["integer", "string"], |
248 | 248 | "title": "Amount of time to cache static assets", |
249 | 249 | "description": "How long static assets are cached. The default means no caching. Setting it to a value enables the `Cache-Control` and `Expires` headers. Times can be suffixed with `ms` = milliseconds, `s` = seconds, `m` = minutes, `h` = hours, `d` = days, `w` = weeks, `M` = months/30d, or `y` = years/365d. If a `Cache-Control` appears on the `headers` configuration, `expires`, if set, will be ignored. Thus, make sure to set the `Cache-Control`’s `max-age` value when specifying a the header.", |
250 | 250 | "default": -1 |
|
296 | 296 | "type": "object", |
297 | 297 | "properties": { |
298 | 298 | "expires": { |
299 | | - "type": "string", |
| 299 | + "type": ["integer", "string"], |
300 | 300 | "title": "Amount of time to cache static assets", |
301 | 301 | "description": "How long static assets are cached. The default means no caching. Setting it to a value enables the `Cache-Control` and `Expires` headers. Times can be suffixed with `ms` = milliseconds, `s` = seconds, `m` = minutes, `h` = hours, `d` = days, `w` = weeks, `M` = months/30d, or `y` = years/365d. If a `Cache-Control` appears on the `headers` configuration, `expires`, if set, will be ignored. Thus, make sure to set the `Cache-Control`’s `max-age` value when specifying a the header.", |
302 | 302 | "default": -1 |
|
437 | 437 | "deprecationMessage": "Deprecated" |
438 | 438 | }, |
439 | 439 | "expires": { |
440 | | - "type": "string", |
| 440 | + "type": ["integer", "string"], |
441 | 441 | "title": "Amount of time to cache static assets", |
442 | 442 | "deprecationMessage": "Deprecated" |
443 | 443 | }, |
|
896 | 896 | "description": "Defines redirects for partial routes. For definition and options, see the redirect rules: \nhttps://docs.upsun.com/define-routes/redirects.html", |
897 | 897 | "properties": { |
898 | 898 | "expires": { |
899 | | - "type": "string", |
| 899 | + "type": ["integer", "string"], |
900 | 900 | "title": "The duration the redirect is cached", |
901 | 901 | "description": "Examples of valid values include 3600s, 1d, 2w, 3m. \nTo disable caching for all your redirects, set expires to 0. You can also disable caching on a specific redirect: \nhttps://docs.upsun.com/define-routes/redirects.html#disable-caching-on-your-redirects", |
902 | 902 | "default": -1 |
|
938 | 938 | "default": 302 |
939 | 939 | }, |
940 | 940 | "expires": { |
941 | | - "type": "string", |
| 941 | + "type": ["integer", "string"], |
942 | 942 | "title": "The amount of time, in seconds, to cache the redirects", |
943 | 943 | "description": "The duration the redirect is cached for. \nMore information: \nhttps://docs.upsun.com/define-routes/redirects.html#manage-caching", |
944 | 944 | "default": null |
|
0 commit comments