# CachedMethods

The HTTP methods that the Behavior will cache requests on.

- Source: [`aws-cloudfront/lib/distribution.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts#L1035)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cachedMethods = cloudfront.CachedMethods.CACHE_GET_HEAD;
```

## Properties

- `CACHE_GET_HEAD`: [CachedMethods](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CachedMethods.html) (static) — HEAD and GET.

- `CACHE_GET_HEAD_OPTIONS`: [CachedMethods](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CachedMethods.html) (static) — HEAD, GET, and OPTIONS.

- `methods`: string[] — HTTP methods supported.
