I had naively assumed that if I enabled the cache-control, and the client made 2 different requests with different header parameter values, the browser/server would serve both requests independently, without any caching.
I found out the painful way that this isn't actually true. Even if the request header's parameter value changes, the first response is still cached and served for the 2nd request.
Is there any definitive list of cache-control's behavior regarding which constitutes a "cache hit" and what constitutes a "cache miss"?
Some different factors I can currently think of:
- Query parameter keys
- Query parameter values
- Form parameter keys
- Form parameter values
- Header parameter keys
- Header parameter values
I can tell from my experience that number 6 is definitely ignored for the purposes for determining if a request is a cache-hit.
From some research I've done, factors 1 and 2 seem to be evaluated when determining if something is a cache-hit.
What about the others?