Polish Cache Not working on Image

What is the name of the domain?

vtracku.com

What is the issue you’re encountering

Cache Not working as Expected

What steps have you taken to resolve the issue?

Enabled Polish and checked polish headers but still not working .Proxy is also enabled.
Sample image url for reference

Polish is applying to that image. It’s reducing the size significantly:

> GET /dyEBLSdt/BABY_SHOOT/CoverPhoto.jpg HTTP/2
> Host: images1.vtracku.com
> User-Agent: curl/8.7.1
> Accept: */*
> 
* Request completely sent off
< HTTP/2 200 
< date: Sat, 03 Aug 2024 16:21:50 GMT
< content-type: image/jpeg
< content-length: 49751
< age: 35
< cf-bgj: imgq:85,h2pri
< cf-polished: degrade=85, origSize=269662, status=webp_bigger

I have ran same command in ubuntu command line getting below output. Image in browser only resolution has been reduced but size remains same
curl -I https://images1.vtracku.com/dyEBLSdt/BABY_SHOOT/CoverPhoto.jpg
HTTP/2 200
date: Sun, 04 Aug 2024 18:26:14 GMT
content-type: image/jpeg
content-length: 269662
last-modified: Sat, 13 Jul 2024 07:41:38 GMT
x-amz-server-side-encryption: AES256
etag: “6c3f2b342fa0762f36c19fcd00832358”
vary: Accept-Encoding
x-cache: RefreshHit from cloudfront
via: 1.1 af86514a971710393281eb8dad1159c2.cloudfront.net (CloudFront)
x-amz-cf-pop: BLR50-P1
alt-svc: h3=“:443”; ma=86400
x-amz-cf-id: WSr39FKcISDinJaTvLCXqYa1MqtJi222NA-btHThPBPnth80NuF2Og==
cache-control: max-age=31536000
cf-cache-status: EXPIRED
accept-ranges: bytes
report-to: {“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v4?s=FSxuvNkTt58VnWd9%2F9H9NvidF1VNM6oGzaFBrcvNL3Qb%2B5DxhbT0C5%2BB3r2WoIhtZOhwAmAMM0qBD6jkuxU9UdiJmowLbXiWD3bzO6gtKVZLp4DgcNNtpyEF3o1YsbudUTiLHEa1DsmAIcdtDxRRiog%3D”}],“group”:“cf-nel”,“max_age”:604800}
nel: {“success_fraction”:0,“report_to”:“cf-nel”,“max_age”:604800}
server: cloudflare
cf-ray: 8ae0983548a326b9-BLR

Please remember that an image isn’t polished if it’s not served from cache, as described in the documentation:

https://developers.cloudflare.com/images/polish/

Yours is EXPIRED, so it needs to fetch the original again. The next request should be polished.

I have attached wrong request .Check below request for which Polish not applying

curl -sI https://images1.vtracku.com/nQ2mlm5M/TestAlbum/Testing.jpg
HTTP/2 200
date: Mon, 05 Aug 2024 09:02:11 GMT
content-type: image/jpeg
content-length: 21348301
last-modified: Mon, 05 Aug 2024 09:01:32 GMT
etag: “4078e98f005b3c37aa6a539e4046d16d-2”
x-amz-server-side-encryption: AES256
x-cache: Miss from cloudfront
via: 1.1 2ab6e529487965f7c0304e0b38af60d4.cloudfront.net (CloudFront)
x-amz-cf-pop: MAA50-P1
alt-svc: h3=“:443”; ma=86400
x-amz-cf-id: NkjwHRYDVuoQX_d_qSdhD5UaRAL501qqFkdouvX9H4zImGnP1pLGZg==
vary: Accept-Encoding
cache-control: max-age=31536000
cf-cache-status: HIT
age: 8
accept-ranges: bytes
report-to: {“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v4?s=42ePkfOpmcYk%2Ft29V%2B8qllOeRq1hNocyTLcX3pfJETCzHbG34prP2EsTjwJG7ZgAHgVwFyA28rnEtJMQ9MkI1AYe6IZGbnPvtncjuAoqwd7F5xlgAvUsC63tz5vBAoIP74HABX2MY%2BPzTZMy0ir7v2Q%3D”}],“group”:“cf-nel”,“max_age”:604800}
nel: {“success_fraction”:0,“report_to”:“cf-nel”,“max_age”:604800}
server: cloudflare
cf-ray: 8ae59b5c7ddb7faf-MAA

Another image polish is applying on same domain polish is gettng applied

curl -sI https://images1.vtracku.com/dyEBLSdt/BABY_SHOOT/CoverPhoto.jpg
HTTP/2 200
date: Mon, 05 Aug 2024 09:05:36 GMT
content-type: image/jpeg
content-length: 49751
cf-bgj: imgq:85,h2pri
cf-polished: degrade=85, origSize=269662, status=webp_bigger
alt-svc: h3=“:443”; ma=86400
etag: “6c3f2b342fa0762f36c19fcd00832358”
last-modified: Sat, 13 Jul 2024 07:41:38 GMT
vary: Accept-Encoding
via: 1.1 b4a529b67dbf6b77c26b2c0a5cd8a058.cloudfront.net (CloudFront)
x-amz-cf-id: PkaP0sGig3zhtdDmtf8KbFH3QLt-WsSErvK5iHps6B-mHhbBJyX8hg==
x-amz-cf-pop: MAA50-P1
x-amz-server-side-encryption: AES256
x-cache: Miss from cloudfront
cache-control: max-age=31536000
cf-cache-status: HIT
age: 47974
accept-ranges: bytes
report-to: {“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v4?s=ZMSEd5GFn1M1ySNL%2FWCaOskSPxPjvGlxHv18VpuQ5qq3iUm2u1Gf5%2FM2%2BzkRgYwcpagrxhAVTwjMtBPL6qZQA5xP1DLDASfGYAndUdl4edT4X%2FBrzmKUxc0W%2BmeGqzCB5aza%2BFSVsbwi1aBA313MFRc%3D”}],“group”:“cf-nel”,“max_age”:604800}
nel: {“success_fraction”:0,“report_to”:“cf-nel”,“max_age”:604800}
server: cloudflare
cf-ray: 8ae5a05948fea78c-DEL

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.