401/405
What is this check, and why should you care
Having a cache hit ensures the fastest possible delivery of content to end users.
The response header X-Cache
had a value of HIT
.
Fastly has documentation on how to interpret the X-Cache
header.
Maximum possible points
100
What is this check, and why should you care
Using a long cache lifetime helps to ensure a high cache hit rate.
In order to get maximum points, your cache lifetime must be greater than or equal to 4 weeks. If your cache lifetime is less, then you will get some proportion of the score based on how close to 4 weeks you are.
Current cache lifetime is 2628010 seconds (1 month and 2 days).
You can read more about which headers Fastly uses to indicate the cache lifetime.
Maximum possible points
100
What is this check, and why should you care
Using a CDN is extremely useful for caching purposes.
Maximum possible points
50
What is this check, and why should you care
The time that it takes for a user's browser to receive the first byte of page content.
The lower the TTFB, the faster your site will be perceived by the end user.
In order to get maximum points, your TTFB must be less than or equal to 30ms. If your TTFB is more than 1 second then you get no points here.
Maximum possible points
50
What is this check, and why should you care
Using ETag
identifiers is an easy way to ensure your visitors are always getting the most up-to-date version of the content. This mechanism allows caches to be more efficient and saves bandwidth, as a Web server does not need to send a full response if the content has not changed. HTTP 304 responses are used to indicate this is working.
An HTTP request with the request header If-None-Match
with a value of W/"67dc2ddc-43284"
was sent, and an HTTP 304 was responded with.
See the Wikipedia page on ETag
for more background.
In order to get maximum points, you need to have ETag
identifiers and an HTTP 304 response must be received when using a valid If-None-Match
request header.
Maximum possible points
30
What is this check, and why should you care
Using Last-Modified
headers is an easy way to ensure your visitors are always getting the most up-to-date version of the content. HTTP 304 responses are used to indicate this is working.
An HTTP request with the request header If-Modified-Since
with a value of was sent, and an HTTP 304 was responded with.
Maximum possible points
30
What is this check, and why should you care
Having tiered caching can help improve the cache hit ratio of your site because it provides an additional layer of caching in front of your origin.
Maximum possible points
25
What is this check, and why should you care
The purpose of HTTP compression is to reduce the size of the files sent by a CDN/web server by eliminating redundant information in those files. The smaller the size of the files, the more quickly they can be served over the World Wide Web.
On top of faster delivery, compression also reduces the amount of bandwidth used by the CDN/web server. This is especially important for mobile devices, where the bandwidth is often limited.
The response header Content-Encoding
had a value of gzip
.
Fastly has documentation on how to enable automatic compression.
See the Wikipedia page on HTTP compression for more background.
In order to get maximum points, you need to use Brotli
or Zstandard
compression.
Maximum possible points
20
Name | Value |
---|---|
Status Code | HTTP 200 |
Accept-Ranges | bytes |
Age | 836165 |
Cache-Control | max-age=2628001 |
Connection | keep-alive |
Content-Encoding | gzip |
Content-Length | 96758 |
Content-Type | application/javascript |
Date | Sat, 19 Apr 2025 01:47:13 GMT |
ETag | W/"67dc2ddc-43284" |
Fastly-Debug-Digest | 6d0169a7b4c9cd1fe72a1e86fe8c6559948225e47ccb95f62dcdf875d910cfda |
Fastly-Debug-Path | (D cache-wsi-ysbk1060020-WSI 1745027234) (F cache-wsi-ysbk1060046-WSI 1744644328) (D cache-iad-kjyo7100064-IAD 1744644328) (F cache-iad-kjyo7100064-IAD 1742483020) |
Fastly-Debug-TTL | (H cache-wsi-ysbk1060020-WSI - - 836165) (H cache-iad-kjyo7100064-IAD 2174740.874 86400.000 453260) |
Fastly-Drupal-VCL-Uploaded | 8-1.0.2 |
Last-Modified | Thu, 20 Mar 2025 15:01:48 GMT |
Surrogate-Key | www.berkslibraries.org |
Vary | Accept-Encoding |
Via | 1.1 varnish |
X-Admin-Path | 0 |
X-Basic-Auth | 0 |
X-Cache | HIT |
X-Cache-Hits | 1 |
X-Client-Ip | REDACTED |
X-Country-Code | AU |
X-Ip-Allowed | 0 |
X-LAGOON | amazeeio-us2>ingress-nginx>bcpl01-f2-live:nginx>nginx-744f448dc6-r55p9 |
X-Lagoon-Environment | bcpl01-f2-live |
X-Module-Path | 0 |
X-Monitoring-Bot | 0 |
X-Proxy-Description | cloud |
X-Proxy-Type | hosting |
X-Served-By | cache-wsi-ysbk1060020-WSI |
X-Theme-Path | 1 |
X-Timer | S1745027233.499835,VS0,VE1 |
X-Tor-Node | 0 |
X-User-Login-Path | 0 |
X-Waf-Block | 0 |
X-Waf-Block-Id | 0 |
You can use the following cURL
command:
curl -sIXGET -H 'Fastly-Debug: 1' -H 'Accept-Encoding: br, zstd, gzip, deflate' 'https://www.berkslibraries.org/sites/default/files/js/js_2DRPN26YrUveVho4-FRBGQlaCRi5p1UV2KXxGf8Rjao.js?scope=footer&delta=0&language=en&theme=bcpl&include=eJxljlsOg0AIRTc0OksiOKKlmQ4EsK_V92FqTfsDhxPCZRaZKwE2rLfg4nn-EWkQCQ9DzRuBGgE3jjQUrXmSFr7ittJ5MdaPPnqHpYiNLC1daJjETvA9_Gd2oSoqZ7KdCZEarOnMdPH8rj0e8ZqeAZRHWxRrPzJWmVcfdA0wcr5T3nG_tiTTxIXgIIt53g_wegojyMADY3FYdMSgBwTkeu0' | sort