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
SsrSite: Enable support for Origin Shield on CloudFront origins #3732
Comments
How do you do this in CDK on a CloudFront distribution? |
@jayair basically something like this:
|
I wonder if you could configure it with the |
@jayair I'm pretty sure it's not possible, because origins in
So there's no way to pass any custom options to And |
Origin Shield is a CloudFront feature that can be very helpful to improve cache hit ratio, performance and/or reduce load on the origin.
In the context of a
SsrSite
, this feature only makes sense when deploying in regional mode.API
Origin Shield can be enabled on an origin type basis; depending on each use case it may or may not make sense to enable it for each origin type. This also provides stability if new origin types are added.
The Origin Shield region should be the same as the one the app is deployed to.
Steps
regional.originShield
propThe text was updated successfully, but these errors were encountered: