• Tollef Fog Heen's avatar
    Round down synthesized last-modified timestamp in object · a7c18717
    Tollef Fog Heen authored
    Commit 3bd239e9 makes it so we set the
    object's last-modified timestamp to the current timestamp if there's
    no Last-Modified header.  This makes it so we can do conditional gets
    even when there's no Last-Modified or ETag header from the backend.
    However, the time entered was a float, so we effectively ended up with
    an off-by-up-to-one-minus-epsilon error.  This lead to requests ending
    up in a 304/200 response code round-dance.
    
    We now round the timestamp down to the nearest whole second instead,
    which should fix this bug.  Thanks to lrowe for a helpful bug report.
    
    Fixes: #907
    a7c18717
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.am Loading commit data...
Makefile.kristian Loading commit data...
flint.lnt Loading commit data...
flint.sh Loading commit data...
vtc.c Loading commit data...
vtc.h Loading commit data...
vtc_client.c Loading commit data...
vtc_http.c Loading commit data...
vtc_log.c Loading commit data...
vtc_main.c Loading commit data...
vtc_sema.c Loading commit data...
vtc_server.c Loading commit data...
vtc_varnish.c Loading commit data...