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
No description
7 Replies
DanTheGoodman
DanTheGoodmanOP6mo ago
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?
Chaika
Chaika6mo ago
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
DanTheGoodman
DanTheGoodmanOP6mo ago
maybe i was being mislead by the expires header then
Chaika
Chaika6mo ago
if both max-age and expires exist, max-age is used
DanTheGoodman
DanTheGoodmanOP6mo ago
they were set to the same value, but it was just not what I had for edge so it was confusing
Chaika
Chaika6mo ago
yea, what matters is just what is returned in max-age to cf
DanTheGoodman
DanTheGoodmanOP6mo ago
or sorry, it wasn't what I had for the max-age yep got it now, thanks!
Want results from more Discord servers?
Add your server