Hello all,
I’m a beginner with CDNs, but I had my Cloudflare cache working well as it was showing HIT status.
However, I upgraded to HSTS and now my Cloudflare is no longer caching my site correctly.
My Header Shows that the cache-control max-age=0 (it used to match before switching to HSTS) and my strict-transport-security max-age=31536000.
Any ideas as to why upgrading to HSTS would cause this issue or how I can fix it?
Thanks so much for any help! My Request Header is below for additional info:
- Request URL:
- Request Method:
GET
- Status Code:
200
- Remote Address:
- Referrer Policy:
strict-origin-when-cross-origin
-
Response Headers
-
cache-control:
max-age=0
- cf-cache-status:
MISS
- cf-ray:
6c0a5737ee3e5fd4-SEA
- content-encoding:
gzip
- content-type:
text/html; charset=UTF-8
- date:
Mon, 20 Dec 2021 16:45:22 GMT
- expect-ct:
max-age=604800, report-uri=“https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”
- expires:
Mon, 20 Dec 2021 16:45:22 GMT
- host-header:
c2hhcmVkLmJsdWVob3N0LmNvbQ==
- last-modified:
Mon, 20 Dec 2021 15:14:57 GMT
- server:
cloudflare
- strict-transport-security:
max-age=31536000; includeSubDomains; preload
- vary:
Accept-Encoding,Cookie,User-Agent