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 ?

preguntada hace 2 años226 visualizaciones
1 Respuesta
2
Respuesta aceptada

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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas