I get a collection of books from an external resource. For this, I use a call like
response = book_resource.get_books({headers:{"If-Modified-Since" => last-update-date.httpdate}})
In the last update date, I saved the value of the last change from the header of the previous response. But I always get the status code as 200, but instead of 304 it is not changed. But when I tried to use etag using the following code.
response = book_resource.get_books({headers:{"If-None-Match" => "etag"}})
The above works fine and does not return 304. Please help me what I am missing with modified from
source share