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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南