sanfrancesco / prerendercloud-lambda-edge

Pre-render CloudFront with this Lambda@Edge function. Powered by https://headless-render-api.com (formerly named prerender.cloud from 2016 - 2022)
https://headless-render-api.com
MIT License
206 stars 35 forks source link

what if i over write content of my bucket. #12

Closed matesio closed 6 years ago

matesio commented 6 years ago

Hi, i know this can not be an issue, i am just trying to figure out, what if i delete whole content of my bucket after deployment of prerendercloud-lambda-edge , should i need to deploy it again?

jotto commented 6 years ago

Yes you will need to deploy the content to s3 again.

There's a chance things will still work from some of CloudFront's network, but as far as I know they have hundreds of PoPs (nodes) each with their own cache. So if any of those uncached nodes are hit, and the s3 content is gone, then the request will fail.

matesio commented 6 years ago

I am deploying my apllication from github to s3 with versioning enabled, how should i deploy lambda@edge in this case.

jotto commented 6 years ago

Sorry for the delay.

S3 with versioning should not change anything. Proceed as normal