Caching Score: https://www.middleeasteye.net/

Summary

GradeA+

593/603

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 2764800 seconds (1 month and 4 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 "1736751696" 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.middleeasteye.net/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 month and 4 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

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.middleeasteye.net/?fbclid=1736751987.

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.middleeasteye.net/?gclsrc=1736751987&gclid=1736751987.

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.middleeasteye.net/?utm_source=1736751988&utm_medium=1736751988&utm_campaign=1736751988&utm_id=1736751988.

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

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

TTCLID 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.middleeasteye.net/?ttclid=1736751987.

Maximum possible points

10

Image checks

Performed on the asset: https://www.middleeasteye.net/sites/default/files/styles/splash/public/images-story/Ahmad%20Almnsour.jpeg.webp?itok=a1k8nork

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

You can read more about which headers Fastly uses to indicate the cache lifetime.

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 "67839bc7-1b82a" 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.middleeasteye.net/sites/default/files/css/css_kkClIpDtsafsZ54Jb-twgXSiMki1b3mKujm9WTUCFu8.css?delta=1&language=en&theme=mee_subtheme&include=eJx1juEKwjAMhF-oNI9UsvbmytqmNKnDt3eKoKD-yYWP3F3ijpRNRsgtodlSJO70sTuVmLmEep5xKLntSt_I24YKpzc1VFpY4RYRUxvcaR1cccjY3TXjUHpOXyXNgl_xqzTjAyoVPkrt0s5nXAUCT5PASemChsHFdR58OTs2pTRm5-LfxM_W51KybkjuNKEp6KU-qjoFj7gF7vkZ_KgqMNAffgfhjnX_

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

You can read more about which headers Fastly uses to indicate the cache lifetime.

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 "677d4d3f-5828" 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.middleeasteye.net/sites/default/files/js/js_ZP9ayNj7OeNURM6Cs3CU4BNaCjUQmzQZOikZXuUOw3s.js?scope=header&delta=0&language=en&theme=mee_subtheme&include=eJx1zMEKgCAURNEfkvwkGWV4FsoTnaDPD9oVtLxncbO7liZGVGVnMHdrTIJFU38n7NsbDlyhk2md-RlENF54U6mYyoTCImapCWNPOOXF-2gU44_f0B89ig

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

You can read more about which headers Fastly uses to indicate the cache lifetime.

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 "677d4d3e-1887c" 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
Age286
Connectionkeep-alive
DateMon, 13 Jan 2025 07:06:26 GMT
Fastly-Debug-Digestd968d9ff08c29fbc65b5183e4ef19a960479e5d664bd2b76d8f55ac0ead63a87
Fastly-Debug-Path(D cache-syd10123-SYD 1736751986) (F cache-syd10182-SYD 1736751739) (D cache-lcy-eglc8600084-LCY 1736751738) (F cache-lcy-eglc8600084-LCY 1736751701) (D cache-lcy-eglc8600071-LCY 1736751701) (F cache-lcy-eglc8600071-LCY 1736751701)
Fastly-Debug-TTL(H cache-syd10123-SYD 2764514.466 86400.000 286) (H cache-lcy-eglc8600084-LCY 2764762.181 86400.000 38) (M cache-lcy-eglc8600071-LCY - - -)
Fastly-Drupal-VCL-Uploaded8-1.0.2
Server-TimingHIT, fastly;desc="Edge time";dur=0, HIT, fastly;desc="Edge time";dur=0
Surrogate-KeyAYqq 8ycN O3qa ydNJ wH+o M3eR eJHe mVYl mzfb I2Vo K6/k dl/s LVFh kwLD pE7p pm+D S4op y6yG z7La e0pQ 4rnH X0Vb qTYv ONxv 5dBW xkL3 PsD9 qxx6 CJj8 sj0g b+GY XQYd Ku7l ehHk fGOX AOJw G4tw e31L z7JP kn3H TQFB d5Ql 4w8D 4ke8 9tek c+E9 TH75 ieIr 8ASR dp7D KcWt kT+9 s9VB iktT W0SE 1Oau xMjB kg6/ Anhq gmRt 0aIE dNBN Jsjg bZnU GM33 oquY uLmx hm+d pq/s v9GU Karp H7bw 51vu In3t n6Ei 8MGs s1Ve T44k ncuF qtQp Yqin aaf0 phJu 8+/0 Gk6b q064 JOdE e4QN hd0j Njef sBIe NrJJ J3Xt cxL0 3y9h l9X+ pz9b fPYP jhIW mztg yj57 IGSs lTIc P0dR d7uP uYA9 6OAN KV1s c3LG f2xx 5WkK 1FCm KT7n aZYL 5lSy 1CjL JfiV Aa62 qGAl DfpG XvpR wFtU vXJI Txru s+xf ojIJ 3UnX YiHe CgZN aZPE GEJC qjOy x8LA dRl0 NjWr ESvJ ZPQ+ C6t3 zegd K9Ho TWDH nYQa Qdmx dBzg V9bF cH8a /aIe lb9F W1U8 U+DJ +vH2 mUrg aaOb l8vL 0jvn jhHX SJne 2wLm +acw ZZ5S 8cle mT6Y xT3x Z+KU +cXZ bQkU +aMi AV4h yR08 x1Af cMml DGpY UqoJ TKXB 6C+T ELcu 2Xok /d7v y/Wp ckhP qOz+ InLp V1/G iOyq imjM oU8E a7hr fnxe Eueg SCNV TmTb He+z feJ4 hwjx KC4R W9YD JrdX TecK x9H0 7/m/ pDam qa+W MULj NHYw mtoz eGQZ L25P yokg QfM7 BZ9+ 5OII Bnsy aL06 DGmQ S4Wb W59m hRMq gIYy UgB8 ZyyY pH2w 5dpO mGxr 5M3v 2Jgp FrTD strm AAau NgPS 3HP6 fTsL Z0ZM pjjp zzrU +Sqz wSrK Bo9P sye6 Tcwl /6sh 3oZn 6kVa lFao Usnm asxs 58bI o1h5 gPEn XWpH QU8m ZJRa xXI2 ZO8l 4hE3 +CMt 9cHM NxWg MbhT y44d 638M c47Z 6o+j 8Tzk zuVV Sbjb 3Nll JBGP xnZ1 FdVo XqeD XgET VyUu JawA oKEz 3mnz pQVa v8vk 4Frj ZGro E5Ut k4JU Cjnq JsQr S99m zAot 8kg8 Zp1G fEM0 wj4g 9tP+ YfDL 4ZAn GB3B czMI Bchk CK6J JY0w l8qQ zPVm BqW/ NQT3 0u8i 9I7M sIza eX35 V/br F8uk ZOiY Xj9J +GmZ 04TO 1SfJ h5wN F4/Q 4sr4 TGu3 8Bn4 Y2RS www.middleeasteye.net
VaryCookie, Accept-Encoding
Via1.1 varnish
X-CacheHIT
X-Cache-Hits2
X-Lagoon-Environmentmiddle-east-eye-main
X-Served-Bycache-syd10123-SYD
X-Service-IdVZfVmtJmiKLPRMgz9Un0L7
X-Static-Asset0
X-TimerS1736751986.438955,VS0,VE0
X-Waf-Block0
X-Waf-Block-Id0
alt-svch3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
cache-controlmax-age=60, public, s-maxage=2764800, stale-if-error=180, stale-while-revalidate=60
content-languageen
content-typetext/html; charset=UTF-8
etag"1736751696"
expiresSun, 19 Nov 1978 05:00:00 GMT
fastly-drupal-htmlYES
fastly-request-idff5fdff3bfbef5e0a9326c07, 7938d6a4af573f90c389c990
last-modifiedMon, 13 Jan 2025 07:01:36 GMT
surrogate-controlmax-age=2764800
x-drupal-dynamic-cacheMISS
x-encoded-content-encodingbr
x-encoded-content-length26874
x-lagoonamazeeio-uk3>ingress-nginx>middle-east-eye-main:nginx>nginx-5ddd66dbf5-rxdq4

If you want to do this yourself

You can use the following cURL command:

curl -sLIXGET -H 'Fastly-Debug: 1' 'https://www.middleeasteye.net/' | sort