DEV Community

Discussion on: Serverless Static Wordpress on AWS for $0.01 a day

Collapse
 
petewilcock profile image
Pete Wilcock

Yes you do, but it's serverless so only for the time that it is in use to make edits and publish.

Collapse
 
jolodev profile image
JoLo

Thanks Pete for your reply.
Will the changes happen on the fly or do we have to uncache cloud front first?

Thread Thread
 
petewilcock profile image
Pete Wilcock

The CloudFront cache settings will be respected, so depending on what you set in the cache-control:expiry header as in the S3-Addon, the results will continue to be cached in CloudFront for that amount of time. The default set on the distribution is 7 days if there are no other values.

You can speed this up with a CloudFront invalidation, but that must be used with caution.

Thread Thread
 
jolodev profile image
JoLo

Got it. Thank you so much :)

Some comments have been hidden by the post's author - find out more