Forum Discussion
patim
14 years agoOccasional Contributor
If-Modified-Since: {HTTP-Date}
If the requested entity exists and has not changed since the date provided by the client, then a result code of 304 (Not Modified) will be returned with an empty body.
I am sending the following request ;
GET /entities/{user}/{session}/{entity-id}
and need to specified the condition for this Get request is that if modified date is not changed since the date provided by the client then the result code should be 304.
I have added a requests header "If-Modified-on" with value "2012-18-15" but not getting the expected 304 result code.
(Modified date on response is 13-08-2012)
Please help
If the requested entity exists and has not changed since the date provided by the client, then a result code of 304 (Not Modified) will be returned with an empty body.
I am sending the following request ;
GET /entities/{user}/{session}/{entity-id}
and need to specified the condition for this Get request is that if modified date is not changed since the date provided by the client then the result code should be 304.
I have added a requests header "If-Modified-on" with value "2012-18-15" but not getting the expected 304 result code.
(Modified date on response is 13-08-2012)
Please help