Amazon CloudFront Communication wordpress how ?

0

Have question about CDN Amazon CloudFront. Example im have installed wordpress on my hosting server and on my hosting server now is style.css file. When im use CDN Cloudfront this style.css will load from amazon not from my hosting server and if im wanna to make change on style.css if im make this change on hosting server, will change style.css file on amazon server ? and how amazon will know im change .css file ?

已提问 2 年前226 查看次数
1 回答
2
已接受的回答

This will depend on the cache (expiration) settings. From the Amazon CloudFront user guide:

Typically, CloudFront serves a file from an edge location until the cache duration that you specified passes—that is, until the file expires. After it expires, the next time the edge location gets a request for the file, CloudFront forwards the request to the origin to verify that the cache contains the latest version of the file.

By default, each file automatically expires after 24 hours, but you can change the default behavior in two ways: (a) CloudFront TTL settings or (b) Cache-Control header

In case you need to remove a file manually from CloudFront edge caches before it expires, you can invalidate the file (e.g. CSS style sheet file). More information about Invalidation is available here: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html

profile picture
joahna
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则