Cache-Control: What happens if Browser and Client specifies a Cache-Control header?

I am struggling with Cache Control in my application.

Apparently my browser was requesting the HTML files with Max-Age=0. My web-server doesn't have a directive, but the CDN proxy was passing a cache directive with 24 hours time to live.

The question is, what happens if a browser pass No-Cache in the request, for example, but the server specifies a Cache time? What has the highest precedence?

Can I ignore cache completely from client, or am I always subject to what the server responds?

Thanks!



Read more here: https://stackoverflow.com/questions/67185501/cache-control-what-happens-if-browser-and-client-specifies-a-cache-control-head

Content Attribution

This content was originally published by Victor Ferreira at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: