truonglv submitted a new resource: [tl] WebP Image Integration - Optimize images with webp to improvement page load Features Convert all attachment images (PNG, JPEG) to WebP format Convert all user avatars to WebP Pre-installation This is self-host service so it's does not work with shared...
If you have a CloudFlare Pro plan it will handle converting images to webp when relevant. If a browser doesn't support webp, or if the webp image ends up being larger than the original it will just serve the original image format.
I don't have a CloudFlare account, but as far as I am understanding the documentation and dicusssion on their community it would only work if Cache-Control does not contain no-transform or no-cache - but XenForo does set no-cache.
but as far as I am understanding the documentation and dicusssion on their community it would only work if Cache-Control does not contain no-transform or no-cache - but XenForo does set no-cache.
Ah yeah, you're right I forgot about that. Site I tested it on is setup to force a cache control header on attachments that guests can view. That add-on isn't public, but I'd imagine this one works similarly, and would allow CloudFlare's polish feature to work
Yes, this Add-on most likely would work, but it would effectively make all image attachments publically cachable (including those used in private areas like conversations) - this is IMHO not a good idea.
Not sure how that specific add-on works, but as long as it checks guest permissions which our internal one does that shouldn't be an issue. Easy enough patch to add if not