Specifically, what portions of the URL are used for comparison. Suppose I serve a CSS stylesheet at https://www.example.com/a/b/test.css
with the appropriate HTTP headers for cache-control
, max-age
, etc. When a user goes to each of the following URLs later, which of them will serve the cached file?
https://www.example.com/a/b/test.css
https://www.example.com/a/b/test.css?abc=123
https://www.example.com/a/b/test.css#abc=124
Basically, what I'm asking is whether or not the "search" and "hash" portion of the URL string are compared when the browser decides whether or not to use a cached resource. Further, is this comparison logic consistent across browsers, or otherwise part of some standard?