4 ms·
Does this require invalidating the main page in cloudfronts CDN when you add a blog post or article?
by drudru11 8y ago
Does this require invalidating the main page in cloudfronts CDN when you add a blog post or article?
- nkristoffersen 8y agoIf you want the updated site to be available immediately then you must invalidate the cache. I do it as the last step in my CI/CD process: - aws configure set preview.cloudfront true - aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_ID --paths '/*' - curl https://google.com/ping?sitemap=$SITEMAP_URL
- drudru11 8y agoThx. I was hoping there was a way to avoid that extra cost. Also, thx for sharing your code to do this.