Using Azure Hosted WordPress, I was doing some performance testing for my website via gtmetrix. My reports were suggesting to ‘leverage browser caching’ and ‘add expires headers’ to improve my performance grading.
So Even after updating .htaccess it wasn't getting updated, I noticed that it wasn’t making any difference to my performance reports – which got me thinking about Azure and that it would be running IIS in the backend and not Apache – and of course IIS doesn’t use the .htaccess file, it uses web.config instead.
So how do I Add Expires headers ??