• Resolved skunkworks

    (@skunkworks)


    I set up a bare bones WP install with only this plugin installed.

    Conversion method “GD extension” is working in tests.
    Changed the header image of the site.
    Debug url shows success.

    Yet JPG continues to be served.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • same problem..

    Plugin Author rosell.dk

    (@roselldk)

    Hi,

    The plugin is actually working on https://webp.skunk.ws/

    Request URL: https://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…

    Thread Starter skunkworks

    (@skunkworks)

    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 5 years, 12 months ago by skunkworks.
    Thread Starter skunkworks

    (@skunkworks)

    Using Chrome’s Inspector / Network / header.jpg I can see that it’s WebP.

    Nice job on this plugin!!

    Plugin Author rosell.dk

    (@roselldk)

    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 ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hmm not working’ is closed to new replies.