You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Lambda@Edge at my workplace and it scales pretty well.
One thing to take note of though is where you run the Lambda@Edge function. You only get the real Host header when you run the function in the ViewerRequest hook which will not be cached. When you execute on the OriginRequest hook, which is cached, it will replace the Host header with the origin's Host header ( For an S3 origin the Host header would be example-bucket.s3-website-region.amazonaws.com instead of example-bucket.com)
A Lambda@Edge deployment would, I think, be a more lightweight solution for redirection than another bucket and distribution.
Something like (written for
!Sub
):The text was updated successfully, but these errors were encountered: