Assess how strong the HTTP caching capabilities of any given site is. Caching Score is designed to answer the question — "how will my site survive a high traffic event?".
Caching Score sends HTTP requests to your chosen site, and analyses the HTTP responses headers. As every CDN responds in a slightly different way and has its own quirks, Caching Score has a plugin system to ensure it understands every supported CDN.
When analysing a given site, Caching Score may send a dozen or so HTTP requests to verify its caching abilities.
Rate limiting of scans is in effect to prevent abuse. The limits are fairly generous, and reset every 24 hours.
Anything over a B is OK 👌, anything above an A has had some serious ❤️ and attention poured into it.
Caching Score compliments Core Web Vitals, as they have different focus areas.
Core Web Vitals is more focused on the user experience of the website (with areas that measure loading performance, interactivity and visual stability), whereas Caching Score is more concerned with how cacheable the respective assets are. It would be possible to have a great Caching Score grade, and a terrible Core Web Vitals grade at the same time.
There are currently plugins written for the following CDNs:
There is also support for generic Varnish reverse proxies as well.
Feedback on how to make Caching Score better is always appreciated, please contact me.
At present, all tests are executed from Sydney, Australia. So long as you are using a global CDN, this will have no negative impact on your score, no matter where in the world your site is actually running from.
There are a number of known limitations of Caching Score:
www.google.com
and www.facebook.com
will not produce accurate scores. These sites don't use traditional CDNs.There are 3 IPs HTTP requests can come from (if you wish to allow list them in your firewalls):
13.238.164.90
13.54.214.206
52.63.95.112
The user agent used is cachingscore/1.0
, so it will be easy to spot in your logs.
These checks are the combination of years of experience in scaling and optimising large mission-critical websites. The scoring is by no means perfect, and will be tuned over time, as I receive feedback.
Many different opensource libraries were used in the making of Caching Score, here are a few of the more consequential ones:
If you do spot an issue with the scoring, HTTP header interpretation, or would like to add support for a CDN that is not currently supported, please reach out.