CSS Caching Test

This tool helps you check all CSS resources on your website are cached or not. By caching the CSS resources, the page load time can be reduced. Page load time is one of the factors in a search engine rankings to the your website.

How do cache all your javascript resources?

You can set of the expires tag headers for your CSS resources. You can add the following lines into your .web.conf file:

location ~* \.(css)$ {
    add_header        Cache-Control public;
    add_header        Cache-Control must-revalidate;
    expires           7d;

If you using .htaccess file:

  ExpiresActive On
  ExpiresByType text/css "access plus 604800 seconds"

This script will only work if you have mod_expires and mod_headers enabled in Apache