W3 Total Cache, AWS Cloudfront & Invalidations
-
Hi,
I read this article https://www.ads-software.com/support/topic/amazon-cloudfront-invalidations/ and I do not get the content right.
My website has plugin W3 Total Cache v0.12.0 and my AWS CloudFront works after extended the W3 Total Cache function with FSD CDN and Type Amazon CloudFront.
Each time I upload an image as admin for an article, WordPress is generating several image sizes of each image what’s normal. This is the moment when AWS is creating “Invalidations”, five invalidation for each file. But I do not know why this happens, because each file is accessible via CloudFront. I didn’t delete my cache or CDN or anything else.
Here is one example of the original file https://cdnaws.schlossschule.org/wp-content/uploads/2020/01/ssi-bb-theater-aula-764398.jpg with these invalidations:
https://cdnaws.schlossschule.org/wp-content/uploads/2020/01/ssi-bb-theater-aula-764398-624×325.jpg
https://cdnaws.schlossschule.org/wp-content/uploads/2020/01/ssi-bb-theater-aula-764398-300×156.jpg
https://cdnaws.schlossschule.org/wp-content/uploads/2020/01/ssi-bb-theater-aula-764398-150×150.jpgIn total AWS created, for one image I uploaded, 5 invalidations. You can imagine what will happen when I doing this with 1,000 images.
I asked AWS and received in return this:
Invalidating is removal of a file from CloudFront edge caches before it expires. More info can be found at the link below:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html.But this is no help for me because I don’t want to remove images before cache expires. And WordPress did a “file versioning” as recommend by the help article above. Is there anything wrong with W3 Total cache? I appreciate any help because I don’t want to get charged by this behavior.
Regards
- The topic ‘W3 Total Cache, AWS Cloudfront & Invalidations’ is closed to new replies.