Until now a download was not registered if the file was accessed directly. Patch method index_html instead of download.