Getting and Verifying Image Headers Expires
01:20 15 Jan 2023

I am working on SEO and need to verify that Image Headers Expires is working. Both modules for expires and headers are installed and enabled.

Any ideas?

The .htaccess file has this in it


ExpiresByType application/javascript "access plus 2 days"
  ExpiresByType image/jpg "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/gif "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType text/css "access plus 2 days"

I have added this to both the wordpress/ directory and the wordpress/wp-content/ directory.

And yet the SEO tool is saying "Your server is not using expires header for your images."

to test using curl I have done

Date: Sun, 15 Jan 2023 04:31:01 GMT
Server: Apache
Location: https://www.jaycocioservices.com/about
Content-Type: text/html; charset=iso-8859-1

apache .htaccess mod-expires