Hello,
I have already configured cache everything rule in CF and tried to enable cache on font files, but still I could see the same output “MISS” in response headers.
I tried below curl to get more info,
curl -svo /dev/null https:/xxxxxxxxxxxxx.com/static/media/roboto-v27-latin-regular.9293bc52.ttf
result :
* Trying 104.18.120.63:443...
* TCP_NODELAY set
* Trying 2606:4700::6810:6617:443...
* TCP_NODELAY set
* Immediate connect fail for 2606:4700::6810:6617: Network is unreachable
* Trying 2606:4700::6812:783f:443...
* TCP_NODELAY set
* Immediate connect fail for 2606:4700::6812:783f: Network is unreachable
* Connected to xxxxxxxxxxxxx.com (104.18.120.63) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [19 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [2333 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [79 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
* start date: Jun 4 00:00:00 2022 GMT
* expire date: Jun 3 23:59:59 2023 GMT
* subjectAltName: host xxxxxxxxxxx.com" matched cert's "*.xxxxx.aa"
* issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x55e1419c1860)
} [5 bytes data]
> GET /static/media/roboto-v27-latin-regular.9293bc52.ttf HTTP/2
> Host: xxxxxxxx.com
> user-agent: curl/7.68.0
> accept: */*
>
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [230 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [230 bytes data]
* old SSL session ID is stale, removing
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
} [5 bytes data]
< HTTP/2 200
< date: Tue, 04 Oct 2022 04:19:47 GMT
< content-type: font/ttf
< cache-control: public, max-age=14400
< etag: W/"8d78-18364f2e318"
< last-modified: Thu, 22 Sep 2022 11:26:23 GMT
< vary: Origin, Accept-Encoding
< x-powered-by: Express
< cf-cache-status: MISS
< expires: Tue, 04 Oct 2022 08:19:47 GMT
< server: cloudflare
< cf-ray: 754b1f08bc124834-SIN
<
{ [1148 bytes data]
cache-control: public, max-age=14400 has non-zero value, and below is the page rule defined,
Could anyone please tell me what else do I need to configure before enabling cache ?
Thanks in advance.