defnull/bottle — Issue #296: File never submitted if changedate of file not changed but file actually is changed
Author: polarwinkel
Created: 2012-03-07 18:43:13+00:00
State: open

If I rename foo.jpg to bar.jpg and bar.jpg to foo.jpg the changed files are not send again, even after I restart bottle.

Uncommenting the lines

if ims:
ims = ims.split(";")[0].strip() # IE sends "; length=146"
ims = parse_date(ims)
if ims is not None and ims >= int(stats.st_mtime):
header['Date'] = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime())
return HTTPResponse(status=304, header=header)

in static_file fixes this.