Caching Score: https://grantstation.com/

Summary

GradeA+

593/593

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 31536000 seconds (1 year and 1 month).

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 "1725560378" 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

Caching HTTP 404s is a great way to offload requests from your origin.

In order to get maximum points, you need to have the ability to cache an HTTP 404 for any amount of time.

This check requested the URL https://grantstation.com/cachingscorebrokenurltest.

Maximum possible points

20

What is this check, and why should you care

Drupal 8+ provides an Internal Page Cache module that is recommended for small to medium-sized websites.

There is extremely limited value in using this module, even when you are using Fastly and having a relatively high cache lifetime of 1 year and 1 month.

In order to get maximum points, you must have the module page_cache disabled.

See Drupal's documentation on the Internal Page Cache module. Also, Wim Leers wrote a really awesome blog post on the release of this module with important background.

Maximum possible points

20

What is this check, and why should you care

CSS aggregation reduces the number of assets your site needs to download. The filename contains a hash of all the file contents, meaning you can cache these files for an extremely long time with no negative consequences.

Maximum possible points

10

What is this check, and why should you care

Javascript aggregation reduces the number of assets your site needs to download. The filename contains a hash of all the file contents, meaning you can cache these files for an extremely long time with no negative consequences.

Maximum possible points

10

What is this check, and why should you care

Drupal 9.5+ introduces a new debug setting to make it easier to debug render caching. This setting will add cache debugging output for each rendered element.

The main issue with this is that this slows down your page loads (on top increasing your page weight).

In order to get maximum points, you must disable the render cache debug.

Maximum possible points

10

What is this check, and why should you care

Drupal 7+ provides a Statistics module to which records content view statistics in Drupal's database.

The main issue with this module is that it sends an un-cacheable HTTP POST request to your site to record a 'content view' statistic. This does not scale well as you Drupal site gets more traffic.

In order to get maximum points, you must disable the statistics module.

Maximum possible points

10

What is this check, and why should you care

Drupal 8+ uses Twig for templating, and the Twig template engine offers a debug tool to which emits out a list of template filenames in the HTML source.

The main issue with this is that you often also have other Twig related performance issues as well, e.g. automatic reloading.

In order to get maximum points, you must disable Twig debug.

Maximum possible points

10

What is this check, and why should you care

You can increase the cache hit rate of your site by stripping certain query parameters from the cache key.

FBCLID is one such parameter that can be stripped by your caching server. This query parameter only really serves a purpose for Javascript to read, and Javascript can still read it from the browser URL.

You can add this VCL snippet to your Fastly service (in the recv subroutine). Fastly documentation on querystring.filter.

This check requested the URL https://grantstation.com/?fbclid=1725761144.

Maximum possible points

10

What is this check, and why should you care

You can increase the cache hit rate of your site by stripping certain query parameters from the cache key.

GCLID and GCLSRC are two such parameters that can be stripped by your caching server. These query parameters only really serve a purpose for Javascript to read, and Javascript can still read it from the browser URL.

You can add this VCL snippet to your Fastly service (in the recv subroutine). Fastly documentation on querystring.filter.

This check requested the URL https://grantstation.com/?gclsrc=1725761144&gclid=1725761144.

Maximum possible points

10

What is this check, and why should you care

You can increase the cache hit rate of your site by stripping certain query parameters from the cache key.

UTM is a collection of parameters that can be stripped by your caching server. These query parameters only really serve a purpose for Javascript to read, and Javascript can still read them from the browser URL.

You can add this VCL snippet to your Fastly service (in the recv subroutine). Fastly documentation on querystring.filter.

This check requested the URL https://grantstation.com/?utm_source=1725761144&utm_medium=1725761144&utm_campaign=1725761144&utm_id=1725761144.

Maximum possible points

10

What is this check, and why should you care

There is a SPAM protection module in Drupal called Honeypot.

The honeypot module has a feature that adds a time based hidden form field to forms to protect against bots filling them in too quickly. This is a nice feature, however it happens to disable caching for the entire page. This is terrible for high traffic sites.

It is recommended to disable this time based feature, and only use the core honeypot feature of a hidden input field.

Maximum possible points

5

What is this check, and why should you care

There are 2 filesystems in Drupal - public files and private files.

Private files force Drupal to bootstrap in order to serve the file, and access control is checked every single time. This is useful for sensitive files, but a hindrance when your site is under high load.

It is recommended to use Drupal's public file system for static, non-sensitive files, and reserve the use of private files for dynamic, or sensitive files.

Maximum possible points

5

Image checks

Performed on the asset: https://grantstation.com/sites/default/files/GrantStationLogo_big.png

See the HTTP headers for this image file.

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

10

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

10

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 "66aa5dbd-dcde" 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

3

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

3

CSS checks

Performed on the asset: https://grantstation.com/sites/default/files/css/css_volSCpbm_0hxQJn7EKV8RUsqPim0WRaQ5btiYlK1HTE.css?delta=0&language=en&theme=grantstation&include=eJxljlEOwjAMQy_Url8cKGVZVZQ0qA5U4_RMCE2M_SS2n2IFK5w1ZQKHbObwTvfLySsDVBjhap1Ts64k9XU82WW8IQo5w395EcskEb5KbSWUTm1D5NVaWqx5pMEw5TPBMforGpyX7Z_03dNcSayEZ-WB9JmT2vwQfgMifVvJ

See the HTTP headers for this CSS file.

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

10

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

10

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 "66cc7943-692c" 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

3

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

3

Javascript checks

Performed on the asset: https://grantstation.com/sites/default/files/google_tag/grantstation_prod/google_tag.script.js?sj8d37

See the HTTP headers for this Javascript file.

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

10

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

10

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 "66d6d743-15d" 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

3

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

3

HTTP Response headers

Name Value
Status Code HTTP 200
Accept-Rangesbytes
Age200765
Cache-Controlmax-age=31536000, public, s-maxage=86400, stale-if-error=86400, stale-while-revalidate=86400
Connectionkeep-alive
Content-Typetext/html; charset=UTF-8
Content-languageen
DateSun, 08 Sep 2024 02:05:43 GMT
ETag"1725560378"
ExpiresSun, 19 Nov 1978 05:00:00 GMT
Fastly-Debug-Digest55bf33124766bb5188f636b2deec90b8897aca2d307f2edf7af94933bb09d476
Fastly-Debug-Path(D cache-syd10128-SYD 1725761144) (F cache-syd10183-SYD 1725589301) (D cache-iad-kiad7000142-IAD 1725589301) (F cache-iad-kiad7000142-IAD 1725560378)
Fastly-Debug-TTL(H cache-syd10128-SYD - - 200765) (H cache-iad-kiad7000142-IAD 31507077.091 86400.000 28923)
Fastly-Drupal-HTMLYES
Fastly-Drupal-VCL-Uploaded8-1.0.2
Last-ModifiedThu, 05 Sep 2024 18:19:38 GMT
Server-TimingHIT, fastly;desc="Edge time";dur=0, HIT-CLUSTER, fastly;desc="Edge time";dur=2
Surrogate-Controlmax-age=31536000, public
Surrogate-Keyz7Xf Ud51 l4DI vQr3 XyqN k1QP pyMj eqwO PWgP TL0Y F1Ox UbEB x90I GySG bkQb RclH k0+w sD04 AnK7 RqHJ WbR/ 0ziX T9iI BJ4K qERT zm+U q0MV N3US rGME Gt+G egCT b0ZQ vCni YpTw w4+T Rhvs ke7l pfrT on9+ LumJ Ch79 2Qfu l9kA +rFF 5u64 OpQa Nrlm bAup jp4F RdgO /1yv qy3F 8uRf AUVD VQSs KSwK 9oq4 OEqp oTUw 9aer lw1v TzBQ 1gRv 9Meh akSP lPs6 ThOO 78BE r6tv 7/yu XGpz C3uU R8GZ deG+ sZT3 QnQr 26rQ tQQH x6vp ioBW XLy6 jfOP fAPn efWK o1Pz Zofu M1zZ cU5Q kEY7 VDTe Q2cD n+oE wHyN Rfvn LCqx musz F2j3 7Amv f4fE AIH6 w9Q+ +vd3 rKGY EPtW 23DD Tn98 WKE6 lWh6 52RQ eKLH Zs6b fWg5 9K48 pxr7 bzdw sg5a kaUj JDcI NVF9 g9xb LaZT /NYe /HNl 1zjn vw8n K34t /lSE T3Wk wJ+4 2627 HRTK RUYi DV8i 9XpY wlEz AxHZ VkeP uXV5 0FCU gVH7 uFU9 i9rE Rc9d w0cF v/4E nGtr 1Dlu MgxK i7zc IF6u 0jyE 1Yhz FW7k +diE Nlh0 Z5uO mvqp h2nL 2RFa oqnd qYIf ye3m QdCK 9Jvo 6sZK 39Zx 2yuj JdWT pGTo VKO5 xeQZ 9wnG 20N7 FqoE yqVG lmaI c3K9 kxzE XD1J IcIM SmU8 Phpw QuO8 XUEH VkPa jd8r GtDX GTUn awpa 3VYt ZOrv R5vD Dqd3 4WFu 1e73 lj8C iU4t 1fyO l/Zi apr9 dYKf QBll 7NcF 2Q6J lLP1 Ppw6 dfJc WLsf OFXW VA8H r2xP f7IY 8EUy ADJ1 5J02 AMGR XAru Kljj qf/g k3SP VrCB k7Mr xlBU 6yC7 u9b8 apwc ewEz y+KA n1Gd rSYV u/z+ 2rAY tVCN 2zy0 c3lj FIkN EXAm eMC1 m/lo 5DA4 vMyc 03/L Bvc6 Xt7T C0gJ Zcqy Q7np bN7a 8KW4 rj3K KsMm cYEL S/LJ zbdv Yf5z Oez2 YDW6 4cxi ZIBf pFMI 5jrp NMZX BMtt E/4i lGE+ Sm6c jJzT 5BEa vcc8 dj9r BzUs 3r5k VmT7 yr9J bQwg ZX4/ efV3 QpqL bVAk jnR8 NeeX PQkW bflD fVMY w6iH z8cf BbHi AWfr L7dP NUEM JCIU ri49 CFYw S0Dj 3bm6 EBJ8 koCx CeQY a5G4 gplV 7zYo CFyI iOu3 kWZO HpOS spcC wMjZ HnYq OD/e m0QK 4rpp DUOT H2+3 ch7h 7Q74 48R7 MO+c ZiPG xP5v 7mqt grantstation.com
VaryCookie, Accept-Encoding
Via1.1 varnish
X-CacheHIT
X-Cache-Hits1
X-Commerce-Core2
X-Drupal-Dynamic-CacheHIT
X-LAGOONamazeeio-us2>ingress-nginx>grantstation-main:nginx>nginx-6dc874b745-2s4s2
X-Served-Bycache-syd10128-SYD
X-Service-IdiwEzSmhGAn4zs42lwXOZY4
X-Static-Asset0
X-TimerS1725761144.686257,VS0,VE2
X-Waf-Block0
X-Waf-Block-Id0
alt-svch3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
fastly-request-idd647a68a1ef732f3c984406f, b56d3b15b8ca4b1c24ad13cf
x-encoded-content-encodingbr
x-encoded-content-length12603

If you want to do this yourself

You can use the following cURL command:

curl -sLIXGET -H 'Fastly-Debug: 1' 'https://grantstation.com/' | sort