by clemens (22.11.2021)

Using avif images with Apache and long cache Times


If you want to set long cache times using the headers cache-control and expires for .avif images, you will probably need to add the mime type for avif first like so:

<IfModule mod_expires.c>
  AddType image/avif .avif

  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType image/avif A31536000