CDN not respecting max-age
Checking the response i get this. I am responding with
c.Response().Header().Set("cache-control", "public max-age=600") // 10 min cache
7 Replies
the urls don't have an extension if that matters
I noticed that
Browser Cache TTL
was set to 4 hours
it seems that overrides it?well yea that's going to override what the browser gets returned in the cache-control header
it won't override the edge cache ttl though
maybe i was being mislead by the expires header then
if both max-age and expires exist, max-age is used
they were set to the same value, but it was just not what I had for edge so it was confusing
yea, what matters is just what is returned in max-age to cf
or sorry, it wasn't what I had for the max-age
yep got it now, thanks!