Caching Score: https://www.berkslibraries.org/sites/default/files/js/js_GpRljjj4qbqb39m9bivvnoPHQCjniTpykBIjoxSgrSA.js?scope=footer&delta=0&language=en&theme=bcpl&include=eJxljmsSgzAIhC8UzZEymBCLk0oGiNqevg_7cNo_sPuxM8vIPBYMMEO5GEX14w9wQ6zFZ57tJQdmUxOonUah-saTdhAjSyKe3YpDZjmHT9b_Efe9Va68oByIMRej6hbCVf1z9jDB5u4F6JO0CqVPBIXHnRtuFgSVrugPut-X45wpYjhxE_VHEx5PgRlKUANrGlpNYHgDdfNvHQ

Summary

GradeA+

385/385

Requested URL checks

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).

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/"66c53aa4-41a7f" 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

HTTP Response headers

Name Value
Status Code HTTP 200
Accept-Rangesbytes
Age1775889
Cache-Controlmax-age=2628001
Connectionkeep-alive
Content-Typeapplication/javascript
DateMon, 16 Sep 2024 19:55:07 GMT
ETagW/"66c53aa4-41a7f"
Fastly-Debug-Digest8b6ce4c66796c802792a6e1bcf93b09980b34a756a375e70847c37a6ff136e40
Fastly-Debug-Path(D cache-syd10142-SYD 1726516507) (F cache-syd10131-SYD 1726516507) (D cache-iad-kcgs7200081-IAD 1726516507) (F cache-iad-kcgs7200081-IAD 1724740618)
Fastly-Debug-TTL(H cache-syd10142-SYD - - 1775889) (H cache-iad-kcgs7200081-IAD 852112.476 43200.000 1775889)
Fastly-Drupal-VCL-Uploaded8-1.0.2
Last-ModifiedWed, 21 Aug 2024 00:53:56 GMT
Surrogate-Keywww.berkslibraries.org
VaryAccept-Encoding
Via1.1 varnish
X-Admin-Path0
X-Basic-Auth0
X-CacheHIT
X-Cache-Hits1
X-Client-IpREDACTED
X-Country-CodeAU
X-Ip-Allowed0
X-LAGOONamazeeio-us2>ingress-nginx>bcpl01-f2-live:nginx>nginx-6647c8bdfd-rcw99
X-Lagoon-Environmentbcpl01-f2-live
X-Module-Path0
X-Monitoring-Bot0
X-Proxy-Descriptioncloud
X-Proxy-Typehosting
X-Served-Bycache-syd10142-SYD
X-Theme-Path1
X-TimerS1726516507.244450,VS0,VE2
X-Tor-Node0
X-User-Login-Path0
X-Waf-Block0
X-Waf-Block-Id0
x-encoded-content-encodinggzip
x-encoded-content-length94381

If you want to do this yourself

You can use the following cURL command:

curl -sIXGET -H 'Fastly-Debug: 1' 'https://www.berkslibraries.org/sites/default/files/js/js_GpRljjj4qbqb39m9bivvnoPHQCjniTpykBIjoxSgrSA.js?scope=footer&delta=0&language=en&theme=bcpl&include=eJxljmsSgzAIhC8UzZEymBCLk0oGiNqevg_7cNo_sPuxM8vIPBYMMEO5GEX14w9wQ6zFZ57tJQdmUxOonUah-saTdhAjSyKe3YpDZjmHT9b_Efe9Va68oByIMRej6hbCVf1z9jDB5u4F6JO0CqVPBIXHnRtuFgSVrugPut-X45wpYjhxE_VHEx5PgRlKUANrGlpNYHgDdfNvHQ' | sort