Normally client will use `Last-Modified` of server returned, as the
value of `If-Modified-Since`. So the `ctime` is exactly equal to
`*mod_ptr`, and rgw should return `Not Modified`, otherwise the cache
will never worked.
Signed-off-by: VRan Liu <gliuwr@gmail.com>
if (mod_ptr) {
ldout(cct, 10) << "If-Modified-Since: " << *mod_ptr << " Last-Modified: " << ctime << dendl;
- if (ctime < *mod_ptr) {
+ if (ctime <= *mod_ptr) {
r = -ERR_NOT_MODIFIED;
goto done_err;
}