What are the different aspects to which the request is matched in the browser cache?

Which of the following requests are considered different in the browser cache?

a) GET http://mywebsite.com/home
b) GET http://www.mywebsite.com/home
c) POST http://mywebsite.com/home
d) POST http://www.mywebsite.com/home
e) GET http://mywebsite.com/home?param=testparam
f) POST http://mywebsite.com/home?param=testparam

      

Suppose if a request only changes in headers, is it considered different? Ex. Is an

Accept: text/xml
GET http://mywebsite.com/home?param=testparam

      

differs from

Accept: text/json
GET http://mywebsite.com/home?param=testparam

      

If they are not different from each other, is there a way to make the browser treat them as different requests based on HTTP Verb / Header?

Is there an RFC specification that defines this behavior for browsers?

Thank!

+3


source to share


1 answer


They are all different. The normative specification is indeed RFC 7234. (In particular, read about the "Vary" header field).



+1


source







All Articles