I’ve new to cloudflare and i’ve moved 2 seperate websites to be behind cloudflare. They both have seperate domains and are powered by node/express web servers.
For some reason, the images in website 2 always have " cf-cache-status:MISS". I’ve run the diagnostic tool as well as looked at other forum posts and and done some testing but still can’t work out why the images are not getting cached.
"Website 1" works perfectly and caches the images correctly. These are it’s response headers:
accept-ranges: bytes access-control-allow-origin: * alternate-protocol: 443:npn-spdy/2 cache-control: public, max-age=31536 cf-cache-status: HIT cf-ray: 5cbbbd467d7724bb-HKG cf-request-id: 04e934a00f000024bbe128f200000001 content-length: 96991 content-type: image/jpeg date: Tue, 01 Sep 2020 03:00:09 GMT etag: W/"17adf-159948f85d8" expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" last-modified: Thu, 12 Jan 2017 21:22:31 GMT server: cloudflare status: 200 vary: Accept-Encoding x-powered-by: Express
Website 1’s general headers are:
Request URL: https://wesbite1.com/thumbs/lrg/1439010507511.jpg Request Method: GET Status Code: 200 (from disk cache) Remote Address: 18.104.22.168:443 Referrer Policy: no-referrer-when-downgrade
"Website 2" images always say MISS. Here are it’s headers.
accept-ranges: bytes cache-control: public, max-age=14400 cf-cache-status: MISS cf-ray: 5cbb2e9e0dcf32cd-HKG cf-request-id: 04e8db76c8000032cdd22c3200000001 content-length: 194072 content-type: image/png date: Tue, 01 Sep 2020 01:22:46 GMT etag: W/"2f618-17442864d60" expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" last-modified: Mon, 31 Aug 2020 03:18:52 GMT server: cloudflare status: 304 vary: Accept-Encoding x-powered-by: Express
Website 2’s general headers are:
Request URL: https://website2.com/dist/beaa8a53cb71d79d58f6cc0a1fcb0c4d.png Request Method: GET Status Code: 200 (from memory cache) Remote Address: 22.214.171.124:443 Referrer Policy: no-referrer-when-downgrade
Can anyone help identify which headers in website 2 are making images to always MISS? or is there something else going on?
Website 1 (this works fine): https://wisdomtoinspire.com/authors/albert-einstein
- have the look at the images and it’s HIT
Website 2 (Images always MISS): https://itheum.com/
- have the look at the images and it’s always MISS
Thanks in advance.