How to fix - Image Caching Test
In order to reduce the number of HTTP requests, you can use the HTTP Expires header to set an expiration time for your images or any other content type. You can add the following lines into your .htaccess file:
<IfModule mod_expires.c>
ExpiresActive on
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"
</IfModule>
How to fix - CDN Usage Test
In order to pass this test you are advised to use a CDN service. A Content Delivery Network (CDN) is a globally distributed network of web servers that allows a quick transfer of assets and provides high availability and high performance. The primary benefits of using a CDN service are:
1. Improving website loading times
2. Reducing bandwidth costs
3. Increasing content availability and redundancy
4. Improving website security
0 Comments