]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: correct "If-Modified-Since" handle. 2725/head
authorVRan Liu <gliuwr@gmail.com>
Wed, 15 Oct 2014 08:29:50 +0000 (16:29 +0800)
committerVRan Liu <gliuwr@gmail.com>
Wed, 15 Oct 2014 08:35:38 +0000 (16:35 +0800)
commit107cb0dd00184f1807c2272b22cc8cbe6702bf6e
treed33cb0afcb8e46c92b9049caf058bc4427965e09
parent6e22c37380f6288062c73e661eebc73ab9971f89
rgw: correct "If-Modified-Since" handle.

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>
src/rgw/rgw_rados.cc