Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cooltronic

    (@cooltronic)

    # Rewrite AVIFs
    <IfModule mod_headers.c>
      <filesMatch "\.(webp|avif)$">
        Header set Cache-Control "max-age=31536000, public"
      </filesMatch>
    </IfModule>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    # Check if AVIF is supported by the browser
    RewriteCond %{HTTP_ACCEPT} image/avif
    # Check if the .avif file exists
    RewriteCond %{DOCUMENT_ROOT}/$1.avif -f
    # Serve the .avif file content for the .webp request
    RewriteRule ^(wp-content/uploads/.+)\.webp$ $1.avif [T=image/avif,E=accept:avif,L]
    </IfModule>
    # Rewrite AVIFs END
    Thread Starter cooltronic

    (@cooltronic)

    Attached CSS Errors can mess up Unused CSS in many optimization plugins. I fixed styles manually.
    So “:-ms-lang” is for IE8. Nowadays it can be deleted.
    Wrong values can be changed to proper values like background-color: transparent.
    text-overflow:”” can be also deleted.
    max-width also has proper options like “max-width:stretch”, because auto is a CSS error.

    • This reply was modified 1 year, 4 months ago by cooltronic.
Viewing 2 replies - 1 through 2 (of 2 total)