I think I have a strange behavior.
When I change device to connect to my website the cache is always set to MISS the first time (then HIT on refresh).
Here is a request on redbot:
HTTP/1.1 200 OK
Date: Fri, 06 Mar 2020 09:48:10 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: __cfduid=d2c26331e63eb9d5ab1f629694eb5a3fa1583488089;
expires=Sun, 05-Apr-20 09:48:09 GMT; path=/;
domain=.mysite.com; HttpOnly; SameSite=Lax; Secure
Vary: Accept-Encoding
Vary: Cookie, Accept-Encoding, Accept-Language
Content-Language: en
Cache-Control: public, max-age=604800
Strict-Transport-Security: max-age=63072000; includeSubdomains
X-Content-Type-Options: nosniff
CF-Cache-Status: MISS
Expect-CT: max-age=604800, report-uri="https://report-
uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
CF-RAY: 56fb28ccfbd7ed57-SJC
Same url via Curl:
curl -s -X GET -I https://www.mysite.com
HTTP/1.1 200 OK
Date: Fri, 06 Mar 2020 09:59:58 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: __cfduid=d88a8b7260fc76fb94e8465272b8e13cb1583488784; expires=Sun, 05-Apr-20 09:59:44 GMT; path=/; domain=.mysite.com; HttpOnly; SameSite=Lax; Secure
Vary: Accept-Encoding
Vary: Cookie, Accept-Encoding, Accept-Language
Content-Language: en
Cache-Control: public, max-age=604800
Strict-Transport-Security: max-age=63072000; includeSubdomains
X-Content-Type-Options: nosniff
CF-Cache-Status: MISS
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
CF-RAY: 56fb39c95b76b78d-CDG
My question is:
Is there a way to tell CF to serve the same cached page no matter the device ?
Kind regards,