Hi,
The plugin is actually working on http://webp.skunk.ws/
Request URL: http://webp.skunk.ws/wp-content/uploads/2018/11/espresso.jpg
Response headers:
Content-Type: image/webp
Server: nginx
Vary: Accept
X-WebP-Convert-Status: Serving existing converted image
…
Note especially the “content-type” header – it is set to “image/webp”. This means that the image is served as webp (even though the request url is jpg). The plugin works by serving webp images instead of jpeg images to webp-enabled browsers. It does not redirect to a webp image, but serves it directly (even though the url shows jpg). This works, because browsers uses the “content-type” header to determine the image type
I’l make sure to explain this a bit better in the FAQ – after the weekend…
Aha. BUT…
What tool are you checking with?
I tried this, this, this, this, and this and all of them see image/jpeg rather than image/webp
-
This reply was modified 7 years, 6 months ago by
skunkworks.
Using Chrome’s Inspector / Network / header.jpg I can see that it’s WebP.
Nice job on this plugin!!
Yeah, the request must be made with a webp-enabled browser, so Chrome’s inspector is the one to go to. Its in the FAQ, but I think I shall put some helping words in the plugin as well. I’m also considering having the plugin itself verify that the redirects are working. Perhaps it could do the test when the options page is visited, or there could be a button.
I’m glad you find the plugin useful and thanks for the review 🙂