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 ?

1 Answer
2
Accepted Answer

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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions