Check Apache server for AVIF and WebP image support

To check if your Apache server supports AVIF and WebP image formats, you can follow these steps:

  1. Check MIME Types Configuration:
    • Open your Apache configuration file (usually httpd.conf or apache2.conf).
    • Look for the AddType directives for image/avif and image/webp. If they are not present, you can add them:AddType image/avif .avif AddType image/webp .webp
  2. Verify Image Serving:
    • Create a simple HTML file with references to AVIF and WebP images.
    • Upload the images to your server and open the HTML file in a browser to see if the images are displayed correctly.
  3. Check for Required Modules:
    • Ensure that the mod_mime module is enabled in your Apache server. This module is responsible for handling MIME types.
  4. Test Image Delivery:
    • Use tools like curl to check the Content-Type header for your AVIF and WebP images:curl -I http://your-server.com/path/to/image.avif curl -I http://your-server.com/path/to/image.webp
    • The response should include the correct Content-Type for each image format.

This site uses cookies and requires your consent to load third-party services. By accepting, you authorize third-party content to load under your permission. Your acceptance will hide this banner for 180 days, after which it will reappear. We apologize for the inconvenience—this requirement is part of GDPR compliance, not by our choice. Privacy Policy

Scroll to Top