David Thomas

My feedback

  1. 24 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    planned  ·  7 comments  ·  Service Improvement » Server Settings  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    David Thomas commented  · 

    at the moment .webp images are being served by apache.
    they should be served by nginx and cached just like jpg/png.

    Also if the .webp file exists next to the jpg/png serve it to browsers that support webp instead.

    ```
    # http config block
    map $http_accept $webp_ext {
    default "";
    "~*webp" ".webp";
    }

    # server config block
    location ~* ^(/path/to/your/images/.+)\.(png|jpg)$ {
    set $img_path $1;
    add_header Vary Accept;
    try_files $img_path$webp_ext $uri =404;
    }
    ```

    David Thomas supported this idea  · 
  2. 39 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    David Thomas supported this idea  · 
  3. 9 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    David Thomas supported this idea  · 

Feedback and Knowledge Base