Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to use their own cloudfront cache policy #3544

Closed
4 tasks done
mrbnclt opened this issue Jun 21, 2023 · 9 comments
Closed
4 tasks done

Allow user to use their own cloudfront cache policy #3544

mrbnclt opened this issue Jun 21, 2023 · 9 comments
Labels
archived This issue has been locked. feature-request New feature or request

Comments

@mrbnclt
Copy link

mrbnclt commented Jun 21, 2023

Before opening, please confirm:

App Id

d2xnowwx5rp3ry

AWS Region

us-east-1

Amplify Hosting feature

SSR

Is your feature request related to a problem? Please describe:

We host our Next.js application in Amplify but since it is using a managed cache policy in CloudFront that includes the cookies to generate the cache key, different users generate a different cache key that causes a significant page load time initially for users.

Describe how you'd like this feature to work

For this feature, our request is to allow an option to use a CloudFront cache policy that we define to have more control on how we should cache our pages.

@mrbnclt mrbnclt added the feature-request New feature or request label Jun 21, 2023
@github-actions
Copy link

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

@siegerts
Copy link
Contributor

Hi @mrbnclt 👋🏻 , thanks for opening this! I'm on the Amplify team and would like to get a bit more feedback here from you, if possible. If you're on the the Amplify Discord Server, my username is siegerts_ and we can set up a chat. Thanks!

@siegerts siegerts added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jun 22, 2023
@mrbnclt
Copy link
Author

mrbnclt commented Jun 25, 2023

Hi @siegerts 👋🏻, I've sent a message in Discord.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jun 25, 2023
@alienngator
Copy link

Hi @siegerts, appreciate your help looking into this!
We have the same use case (disable cookie-based caching). We've been watching issues/2243 for a long... long... time now.

@frixaco
Copy link

frixaco commented Aug 23, 2023

Any updates on this?

@Afrahdev
Copy link

Afrahdev commented Mar 7, 2024

Any updates on this, my cache is hitting miss on amplify

@mauerbac
Copy link
Member

Hello -- We just had a feature launch today that should fix your root issue. We now allow users to remove the cookies from the cache key. This seemed to be your main concern. We are a managed service so it is not possible for users to attach or alter the cloudfront caching policy directly.

Please view our blog post for more info: https://aws.amazon.com/blogs/mobile/cdn-caching-improvements-for-better-app-performance-with-aws-amplify-hosting/

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Copy link

This issue has been automatically locked.

@github-actions github-actions bot added the archived This issue has been locked. label Aug 13, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. feature-request New feature or request
Development

No branches or pull requests

6 participants