Edge Cache always hit apache


I’m working with edge-cache for images. It seems to work but every request always reach my server, what means it’s not working.


It shows:

  1. Cache-Control:public, max-age=31536000
  2. CF-Cache-Status: HIT

Very fine, but if I check my apache log i can find: - - [11/Jan/2020:17:44:39 -0200] “GET /files/flip/CRUZEIRO/339318/up/15658188743931_normal.jpg HTTP/1.1” 200 301149 “-” "Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36\

The browser cache is working fine - if I open the same URL without disable cache it doesn’t hit my server (neither cloudflare), but the edge cache seems wrong.

You are sending a Java session cookie. Remove that and check whether it then caches.


Thanks, I’ll test… probably it’s some filter or interceptor

It worked after I changed the application to avoid sending jsessionID

This topic was automatically closed after 31 days. New replies are no longer allowed.