DEV Community

Discussion on: Serverless Static Wordpress on AWS for $0.01 a day

 
rehanvdm profile image
Rehan van der Merwe

Thanks for the mention, haven't really looked at doing image optimization on WP, might transition to that. Currently using npmjs.com/package/gulp-imagemin.

I will soon do something similar to this medium.com/nona-web/converting-ima... to do optimization on the "fly" for one of the internal company projects.

Thread Thread
 
petewilcock profile image
Pete Wilcock

Oh now you've got me thinking about a Lambda@Edge integration to rewrite any jpg/png requests to a generated WebP version, I could even fix the metadata in the response to guarantee it works! adds to list

Thread Thread
 
rehanvdm profile image
Rehan van der Merwe

That's exactly the plan :) Also if you just want to change metadata/headers look into the newly released CloudFront Functions, those are less expensive and a perfect use case for header rewrites etc.

Some comments have been hidden by the post's author - find out more