A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkforruby/api/Aws/Lightsail/Types/CacheSettings.html below:

CacheSettings — AWS SDK for Ruby V2

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Lightsail::Types::CacheSettings
Inherits:
Struct show all
Defined in:
(unknown)
Overview Note:

When passing CacheSettings as input to an Aws::Client method, you can use a vanilla Hash:

{
  default_ttl: 1,
  minimum_ttl: 1,
  maximum_ttl: 1,
  allowed_http_methods: "NonEmptyString",
  cached_http_methods: "NonEmptyString",
  forwarded_cookies: {
    option: "none",     cookies_allow_list: ["string"],
  },
  forwarded_headers: {
    option: "none",     headers_allow_list: ["Accept"],   },
  forwarded_query_strings: {
    option: false,
    query_strings_allow_list: ["string"],
  },
}

Describes the cache settings of an Amazon Lightsail content delivery network (CDN) distribution.

These settings apply only to your distribution's cacheBehaviors (including the defaultCacheBehavior) that have a behavior of cache.

Returned by:

Instance Attribute Summary collapse Instance Attribute Details #allowed_http_methods ⇒ String

The HTTP methods that are processed and forwarded to the distribution\'s origin.

You can specify the following options:

If you specify the third option, you might need to restrict access to your distribution\'s origin so users can\'t perform operations that you don\'t want them to. For example, you might not want users to have permission to delete objects from your origin.

#cached_http_methods ⇒ String

The HTTP method responses that are cached by your distribution.

You can specify the following options:

#default_ttl ⇒ Integer

The default amount of time that objects stay in the distribution\'s cache before the distribution forwards another request to the origin to determine whether the content has been updated.

The value specified applies only when the origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.

#forwarded_cookiesTypes::CookieObject

An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded.

An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded.

#forwarded_query_stringsTypes::QueryStringObject

An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded.

#maximum_ttl ⇒ Integer

The maximum amount of time that objects stay in the distribution\'s cache before the distribution forwards another request to the origin to determine whether the object has been updated.

The value specified applies only when the origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.

#minimum_ttl ⇒ Integer

The minimum amount of time that objects stay in the distribution\'s cache before the distribution forwards another request to the origin to determine whether the object has been updated.

A value of 0 must be specified for minimumTTL if the distribution is configured to forward all headers to the origin.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4