• I got in pagespeed insights (Google Lighthouse) the message that not all my images had a TTL header.
    Doing some research it boiled down to WebP express.

    I could easily fix this by modifying the .htaccess file in the upload directory (used by webp express) and adding:

    <IfModule mod_expires.c>  
      # Turn on the module.
      ExpiresActive on
      # Set the default expiry times.
      ExpiresDefault "access plus 2 days"
      ExpiresByType image/webp "access plus 1 month"
    </IfModule>  
    # END Expire headers

    Maybe something you can add by default.

    Thanks for this plugin!

  • The topic ‘improvement caching’ is closed to new replies.