After checking on Google PageSpeed Insights, I have optimised the images on several websites using jpegoptim
and optipng
.
Obviously a lot of the images are now smaller and they have new timestamps, but they have not been updated through the Amazon CloudFront CDN.
The expire headers in .htaccess
have been set for one year.
There are many hundreds of images that have been optimised, so manually invalidating them is not that feasible.
What is the best way to do this?