My website is built with WordPress and I'm using a combination of the plugins W3 Total Cache and Autoptimize to make my website faster.
My settings seems to be correct and most optimisation efforts are working as it should, but Google PageSpeed Insights are still suggesting that I should "Leverage browser caching" for my images. The WP site is on the main domain (mydomain.com) where as the images are uploaded to a subdomain (media.mydomain.com).
So now even though I have enabled leverage browser caching for media etc. in W3 Total Cache, PageSpeed says that the images on media.mydomain.com expires only after 5 minutes, but my settings says 31536000 seconds for media.
Are images on the subdomain not covered by the .htaccess settings generated by W3 Total cache? Should I add a similar .htaccess file to the root of media.mydomain.com to make it work, or can I tweak the settings in W3 Total Cache to cover this as well?