Properly handle last-modified time if not set by server and content-length