I am new to working with the Rest API in Java. I am trying to implement if-modified-since
request and got stuck with questions:
- Client sends a get request and the server responds with a resource and a
Last-Modified
header. From then on, client sends a request with theLast-Modified
in theif-modified-since
header. Does this mean that, the first get request from client does not have aif-modified-since
header ? - Would the
Last-Modified
received in the response stored in the browser for ever or should it be stored some where in the client side database to make further requests?