When your web site is static (generated upfront or cached in varnish/nginx), you cannot update view/hits/download counters on each request. This click tracking needs to be done with additional requests.
Let's say our download urls look like this:
http://example.org/download-file/craur/craur-1.2.0.zip