getting .webp images onto Cloudfront CDN
-
I’ve installed WP-Optimize and successfully converted my images to .webp format.
But now I’m testing a CDN (CloudFront) and noticing that only the original unconverted images are being uploaded to my static content origin (an S3 bucket), so all the .webp image links are broken.
I can manually upload the .webp images to my S3 origin but that’s not a sustainable solution. I’m using W3TC to automatically upload the image files to the origin.
What would be the best solution for this? For now I’ve added a rule in W3TC to upload all .webp images found in the /wp-content/uploads directory, which seems to work, but then I have to remember to click that upload button everytime I add a new .webp image. Normally W3TC will handle the upload automatically when you place a new image.
Just wondering if others have encountered this issue and what the most elegant solution is. Thanks.
The topic ‘getting .webp images onto Cloudfront CDN’ is closed to new replies.