admin管理员组文章数量:1291037
I use WP Offload Media Lite plugin to offload upload image to S3. I use raw S3 URL (not CDN) and choose remove file in server option. Then I use EWWW Image Optimizer plugin to convert image on S3 to .webp format. I run bulk optimize and there are .webp copies on S3. Then I choose JS Webp Rewriting to delivery .webp to my site (because I use Nginx) and it works well. But my partner request me deliver .webp to WP Rest api too. Because when he call : ;slug=this-is-post-slug
(GET) , it returns response that has only .jpeg, not .webp. I'm not familiar with WP rest api. How could I do that?
本文标签: optimizationHow to deliver webp format of images to WP REST API
版权声明:本文标题:optimization - How to deliver webp format of images to WP REST API 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741511785a2382647.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论