Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions proxy/http/HttpTransactCache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1381,13 +1381,13 @@ HttpTransactCache::match_response_to_request_conditionals(HTTPHdr *request, HTTP
return HTTP_STATUS_RANGE_NOT_SATISFIABLE;
}
}
// this a Date, similar to If-Unmodified-Since
// this a Date, similar to If-Unmodified-Since but must be an exact match
else {
// lm_value is zero if Last-modified not exists
ink_time_t lm_value = response->get_last_modified();

// condition fails if Last-modified not exists
if ((request->get_if_range_date() < lm_value) || (lm_value == 0)) {
if ((request->get_if_range_date() != lm_value) || (lm_value == 0)) {
return HTTP_STATUS_RANGE_NOT_SATISFIABLE;
} else {
return response->status_get();
Expand Down