From 5a35b015825485b231a6f950cf0234749d255d5d Mon Sep 17 00:00:00 2001 From: Tanner Mares Date: Fri, 21 Jun 2024 09:34:19 -0700 Subject: [PATCH 1/3] Update assets.mdx Fix typo --- docs/assets.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assets.mdx b/docs/assets.mdx index e01c8c4..1ec4cbb 100644 --- a/docs/assets.mdx +++ b/docs/assets.mdx @@ -10,7 +10,7 @@ import DocLink from "../src/components/DocLink.js" import ThemedImage from '@theme/ThemedImage' import useBaseUrl from "@docusaurus/useBaseUrl" -Assets require a to link properly when using API Gateway. For Function URLs, the work out of the box. Both API Gateway and Function URLs can benefit from a CloudFront CDN to cache `/assets` and avoid hitting your backend function on each request. +Assets require a to link properly when using API Gateway. For Function URLs, this works out of the box. Both API Gateway and Function URLs can benefit from a CloudFront CDN to cache `/assets` and avoid hitting your backend function on each request. ## Serving Static Assets From f6f62f6bc43f9ee939f57039913e2323ec86bf99 Mon Sep 17 00:00:00 2001 From: Tanner Mares Date: Fri, 21 Jun 2024 09:45:03 -0700 Subject: [PATCH 2/3] Update assets.mdx --- docs/assets.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assets.mdx b/docs/assets.mdx index 1ec4cbb..917fc51 100644 --- a/docs/assets.mdx +++ b/docs/assets.mdx @@ -31,7 +31,7 @@ config.public_file_server.headers = { ## Adding CloudFront -[CloudFront](https://aws.amazon.com/cloudfront/) is an amazing CDN and is pretty easy to setup with Rails. Simply point CloudFront to your Rails app and allow the origin to set the cache headers. Because we set the `public_file_server` headers above, everything should work out perfectly. Assuming you have setup a via CloudFront, here is how to setup an behavior for your `/assets` path. From your CloudFront distribution +[CloudFront](https://aws.amazon.com/cloudfront/) is an amazing CDN and is pretty easy to setup with Rails. Simply point CloudFront to your Rails app and allow the origin to set the cache headers. Because we set the `public_file_server` headers above, everything should work out perfectly. Assuming you have setup a via CloudFront, here is how to setup a behavior for your `/assets` path. From your CloudFront distribution - Click the "Behaviors" tab - Click "Create Behavior" button From 41046e3a360fa3d46a8e15e28480d109234d3532 Mon Sep 17 00:00:00 2001 From: Tanner Mares Date: Fri, 21 Jun 2024 09:46:27 -0700 Subject: [PATCH 3/3] Update assets.mdx --- docs/assets.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assets.mdx b/docs/assets.mdx index 917fc51..686da2a 100644 --- a/docs/assets.mdx +++ b/docs/assets.mdx @@ -41,7 +41,7 @@ config.public_file_server.headers = { - Viewer protocol policy: Redirect HTTP to HTTPS - Allowed HTTP Methods: GET, HEAD - Restrict viewer access: No -- 🔘 Cache policy and origin request policy (recommended) +- Cache policy and origin request policy (recommended) - Cache policy: CachingOptimized - Origin request policy: None