Caching Score: https://www.rocmn.nl/

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 W/"1721997540" 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://www.rocmn.nl/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://www.rocmn.nl/?fbclid=1722073596.

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://www.rocmn.nl/?gclsrc=1722073596&gclid=1722073596.

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://www.rocmn.nl/?utm_source=1722073596&utm_medium=1722073596&utm_campaign=1722073596&utm_id=1722073596.

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://www.rocmn.nl/sites/rocmn/files/styles/header_image_mobile/public/uploads/vijf-studenten-staan-naast-elkaar-en-lachen.jpg?itok=xlgF5VHf

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 "6552e1c2-15c3f" 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://www.rocmn.nl/sites/rocmn/files/css/css_VYQw3DE43OLH5URIKnepQix097X2R_MannGoTexyKKU.css?delta=0&language=nl&theme=rocmn&include=eJx1kMFOxEAIhl-o3XkG73oxe2_olLakzDACs2t9ete4RqfqhZAP-IHfdnNMYQTDTiWmPIAZuoWFZQTuzXemvLS1392zZLcWXQivRdRbiq-OmoFbGuWC2qKEuR4FJ5SeZoWEvcuy8OEIqymB7p8wRId79sdIUDR6w7uadTLO1SI4DpiAOEw4Q2U_vh23s5yl3DVchJ1KV0BhUSirhUlrAT59k1PNpY5MtuLUGYLGdYBCA1SXKKkwOoZ_eLv9pVLcHilvB59_TjwwP6PdDrevNz_iwVgZifHpZu87bNfI0w

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 W/"66852269-2418" 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://www.rocmn.nl/sites/rocmn/files/google_tag/primary/google_tag.script.js?sh8d7p

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, 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 W/"66a395e6-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
Age76009
Cache-Controlmax-age=31536000, public, s-maxage=600, stale-if-error=604800, stale-while-revalidate=3600
Cache-Tagsconfig:block_list config:block.block.tabs config:block.block.pagetitle config:block.block.messages config:block.block.rocmnmodstatevalue node:464 config:block.block.direction_body config:block.block.exposedformeducationspage config:block.block.exposedformsearchpage config:block.block.rocmnmod_education_search_link_right config:block.block.rocmnmod_education_search_link_left config:block.block.rocmnmodstatevalue_news config:block.block.exposedformeducationspage_2 config:block.block.rocmnmodstatevalue_jobs config:block.block.header_relevant_information_block config:block.block.opleidingszoekermenu config:block.block.contactpaginamenu config:block.block.sitebranding config:domain.record.corporate config:block.block.footer config:block.block.node_header_image_field config:block.block.page_subtitle config:block.block.rocmnmod_contact_block config:block.block.rocmnmod_social_media_icons_block config:block.block.top config:block.block.main config:block.block.target_audience config:block.block.sign_up_link_floating_button config:block.block.openday_floating_button config:block.block.sign_up_link_floating_button_views config:block.block.openday_floating_button_views config:block.block.breadcrumbs config:block.block.rocmnmodcookiesettingsblock config:block.block.rocmnmodsearcheducationblock config:block.block.educationfinderfacets config:block.block.type config:block.block.facet_events_type config:block.block.facet_events_colleges config:block.block.facet_event_location block_view state:rocmnmod_social_media_icons state:rocmnmod_contact rocmnmod_vavo_contact node_view paragraph_view paragraph:20594 config:paragraphs.settings config:filter.format.full_html paragraph:15318 paragraph:15317 paragraph:21549 config:responsive_image.styles.16_9 config:image.style.16_9_small config:image.style.16_9_large config:image.style.16_9_medium node:4761 config:filter.format.filtered_html paragraph:21749 node:4783 paragraph:21220 paragraph:2069 config:filter.format.limited_html state:rocmnmod_open_day paragraph:13282 paragraph:6163 paragraph:815 paragraph:807 paragraph:816 paragraph:15874 node:3901 config:antibot.settings config:honeypot.settings search_api_autocomplete_search_list:views:educations config:search_api_autocomplete.search.educations url.site state:rocmnmod_search user:18 config:system.site rocmnmod.closed_button_cta config:responsive_image.styles.header_image config:image.style.header_image_mobile config:image.style.header_image_desktop config:image.style.header_image_tablet rendered config:cas.settings http_response config:user.role.anonymous config:system.menu.footer node:95 node:48 node:141 node:1929 node:319 node:457 node:109 local_task config:system.menu.main node:608 node:711 node:1634 node:361 node:1860 node:1012 node:799 config:rocmnmod.menu_focus_delay_settings config:system.menu.target-audience config:csp.settings
Connectionkeep-alive
Content-Typetext/html; charset=UTF-8
Content-languagenl
DateSat, 27 Jul 2024 09:46:34 GMT
ETagW/"1721997540"
ExpiresSun, 19 Nov 1978 05:00:00 GMT
Fastly-Debug-Digest087352c5ca39792d8bebb6e1691932abd187dae88933dbb4bc35dc988b84674e
Fastly-Debug-Path(D cache-syd10144-SYD 1722073595) (F cache-syd10182-SYD 1722073595) (D cache-fra-etou8220048-FRA 1722073595) (F cache-fra-etou8220048-FRA 1721997586)
Fastly-Debug-TTL(H cache-syd10144-SYD - - 76009) (H cache-fra-etou8220048-FRA 31459990.948 86400.000 76009)
Fastly-Drupal-HTMLYES
Fastly-Drupal-VCL-Uploaded8-1.0.2
Last-ModifiedFri, 26 Jul 2024 12:39:00 GMT
Server-TimingHIT, fastly;desc="Edge time";dur=0, HIT-CLUSTER, fastly;desc="Edge time";dur=1
Surrogate-Controlmax-age=31536000, public, stale-while-revalidate=3600, stale-if-error=604800
Surrogate-KeyuNoS 0aYB xVz9 S9Oa 0cWW 4uBJ /XfS bT+2 qrVz XBUf 2uBd 4Kqq RVTb YAjx jcmt FW4l 8S4K 8MZx H+kY yLl5 uwcm hg4e YULL zIre qvZ+ rj0g rMGW dyjD tEa8 6Egs GW6b WKi7 eZm8 JCtB ZFm3 HKuX laW3 iqgv xoqH d7bH QgmT ccL0 7wyH U4RF XLKX WPb9 4wj0 ouys 5g7S ctLV msGk CENy uMlF NjBj AD10 m3VK rZo0 6oPB PKrV hxmm hJ2X b5GE bbn2 DByR XRab y801 PPN5 CPfJ IGMc ERCb qesc 9aSe 3FEV FtbK Bmk2 syHm d4xU wSQr lfTy N0dj zykD +HDQ cTj7 5Z4N z9/V J9iq BrxQ Y8+7 hOww +QhG 5luQ XIQw jDXB +tt7 jbmn iCkq D084 K7FH PbW9 y4V1 Eeoh 5VCT XK14 eRu1 MKJ1 kqx7 rHLI 6yr2 www.rocmn.nl
VaryCookie, Accept-Encoding
Via1.1 varnish
X-CacheHIT
X-Cache-Hits1
X-Drupal-Dynamic-CacheHIT
X-LAGOONamazeeio-de3>ingress-nginx>rocmn-nl-production:nginx>nginx-78f9c87744-5vsfv
X-Served-Bycache-syd10144-SYD
X-Service-Id1mvQMYU5Qrh0PzTkAm4JSF
X-Static-Asset0
X-TimerS1722073595.996010,VS0,VE1
X-Waf-Block0
X-Waf-Block-Id0
fastly-request-id810661a09316b9f22019477e, f262d8b91e0f7b0e412dfce0
x-encoded-content-encodinggzip
x-encoded-content-length11116

If you want to do this yourself

You can use the following cURL command:

curl -sLIXGET -H 'Fastly-Debug: 1' 'https://www.rocmn.nl/' | sort