Caching Score: https://www.vcat.vic.gov.au/

Summary

GradeA+

573/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 2628000 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 "1722009628" 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.vcat.vic.gov.au/cachingscorebrokenurltest.

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.vcat.vic.gov.au/?fbclid=1722072378.

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.vcat.vic.gov.au/?gclsrc=1722072378&gclid=1722072378.

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.vcat.vic.gov.au/?utm_source=1722072378&utm_medium=1722072378&utm_campaign=1722072378&utm_id=1722072378.

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

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 month and 2 days.

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

Image checks

Performed on the asset: https://www.vcat.vic.gov.au/sites/default/files/2020-07/Chevron.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 "5f0d4efb-6060" 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.vcat.vic.gov.au/sites/default/files/css/css_8bz_LNTYy6ZslykFk89tOGYxePSxppJsmE00zVP_ZL4.css?delta=0&language=en&theme=vcat&include=eJx1kVtywyAMRTdEzZIYGd9gEgwUiTTu6qvEqVv38cGMdPS6EmO3Yx_8DH9BM7402PNrR1vNVMJcOsON5C-hlZ4nFxcKsF_g5QEMg5qfHXUpviw1QWBlxoJhiVlT0uCZt-YxC1pWsk1xPW58ar0qra2Ehs_kJ_ze1_DKgkU1MIxPxLwe7EWLVdKzQS5Np8d3bK4qRuO7aa6exIZURkomlBISnFCwQZajS-GnP9CZbibRWrq4KWq7qy5iS4YvyVRqFBrVmfeVdjL0XPuYIs-YHgIc1Wr1uUQ96x8cPmAo2W863UnXYOt1TSdrhWMkeDnciIUEf994uJebEaLU4VYLY3KnmNRlG5DR9Ab_hO-nd9zHJYq5Rryxw0mDSBND7C-iMtYUczhIe4znKHCU0GRXvJMP9Sv8AQ

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 "6661a218-5f5d" 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.vcat.vic.gov.au/sites/default/files/js/js_h1BX0eo0xRzpUMGzMgePTfFbbJstmgaRxFlw_Aljzhs.js?scope=footer&delta=0&language=en&theme=vcat&include=eJx1kVtywyAMRTdEzZIYGd9gEgwUiTTu6qvEqVv38cGMdPS6EmO3Yx_8DH9BM7402PNrR1vNVMJcOsON5C-hlZ4nFxcKsF_g5QEMg5qfHXUpviw1QWBlxoJhiVlT0uCZt-YxC1pWsk1xPW58ar0qra2Ehs_kJ_ze1_DKgkU1MIxPxLwe7EWLVdKzQS5Np8d3bK4qRuO7aa6exIZURkomlBISnFCwQZajS-GnP9CZbibRWrq4KWq7qy5iS4YvyVRqFBrVmfeVdjL0XPuYIs-YHgIc1Wr1uUQ96x8cPmAo2W863UnXYOt1TSdrhWMkeDnciIUEf994uJebEaLU4VYLY3KnmNRlG5DR9Ab_hO-nd9zHJYq5Rryxw0mDSBND7C-iMtYUczhIe4znKHCU0GRXvJMP9Sv8AQ

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 "66626304-67d94" 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
Age60939
Cache-Controlmax-age=2628000, public
Connectionkeep-alive
Content-Typetext/html; charset=UTF-8
Content-languageen
DateSat, 27 Jul 2024 09:26:16 GMT
ETag"1722009628"
ExpiresSun, 19 Nov 1978 05:00:00 GMT
Fastly-Debug-Digest56ab3765d546c5daae8389305a836d05084f777e4e36bfd651eff8135dd3882b
Fastly-Debug-Path(D cache-syd10179-SYD 1722072377) (F cache-syd10140-SYD 1722011438)
Fastly-Debug-TTL(H cache-syd10179-SYD - - 60939)
Fastly-Drupal-HTMLYES
Fastly-Drupal-VCL-Uploaded8-1.0.2
Last-ModifiedFri, 26 Jul 2024 16:00:28 GMT
Server-TimingHIT-CLUSTER, fastly;desc="Edge time";dur=1
Surrogate-Controlmax-age=2628000, public
Surrogate-KeyYKde NJ9K HJ0s nKdz Snzg UNov y/T6 9c87 M+4p drSZ +fwM CvVg ZC5g /Cv/ mkXK oG0c HHnP 806L nbKW swsy ByL2 wGx8 m052 2f3k jojc R5wi MfUa nZVy I4kd WCFq AIn7 rYG4 e6/k Zuo+ Fru/ Lkcd LCF4 TUqt uwkT jd+Z mDmk D7ET dxet CXzr q/Yl 0ASG 2lSe csXO 4lTi 2ER+ +a5A FR/m pPWl go+J sLhV wBOP dzvS 3kAJ Ug/R xMkr 7tTO Coe3 1Qza OHY2 eVS9 ++8n q6H7 RBlD YvMR tqNP VmKG dw+U Ci/O BH2I EmVC ByA0 dyab wAdy 7laM K1UC jCsR ek3E dpz/ i0mY qIPw lMRC e0P2 XL4d MWaL fVZl hYaN FAql mTmV dK/h zmyH 1RHj ezla q1+7 sY8W 3PY1 dKtG ZLds N+o8 jkp1 1tma gFCw zSzK oao0 OBce DK2Y v247 28A7 Qwqz Deeh Xvk7 RjYO +wYR LBpy Oelc MHDX M/7b /cHO q+nO uO0X Bz1t n3hk E1gi snFu yUqK 3jWv be4R J12B /t5O N2T+ kb4c 8ObV EaIz nZeb Zg5U jRgU OpKE X3+q ILPv QEjy 4p7F Bh1g FtcP pO/T 9rhH m6ZM UrPX fDuC dqpD JJAk /rj1 yeEM uRMV nSXB tZcv MQ0P hoxn T5jy f8SH ZF1T upau 7scV Rjxx YsBx rETw Up9s LrCo u7M2 XVaR bvUd Rr/+ r/HH vAnp Ecsn 1dYD fY8l d6sx Nh34 u6G2 a/B+ CW7l LS8b Jfq2 bdQk oCmi www.vcat.vic.gov.au
VaryCookie, Accept-Encoding
Via1.1 varnish
X-CacheHIT
X-Cache-Hits1
X-Drupal-CacheHIT
X-Drupal-Dynamic-CacheMISS
X-LAGOONamazeeio-dh1>sigsci-ingress-nginx>vcat-website-drupal8-2020-deploy-lagoon-production:nginx>nginx-d79b766bb-cnj24
X-Served-Bycache-syd10179-SYD
X-Service-Id0VfjtEv26MEnPZwvF4qtZO
X-Static-Asset0
X-TimerS1722072377.698870,VS0,VE1
X-Waf-Block0
X-Waf-Block-Id0
alt-svch3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
fastly-request-id99e8eaac0a8e40571e2f0b90
x-encoded-content-encodingbr
x-encoded-content-length14588

If you want to do this yourself

You can use the following cURL command:

curl -sLIXGET -H 'Fastly-Debug: 1' 'https://www.vcat.vic.gov.au/' | sort