SetEnv no-gzip dont-vary
<IfModule mod_rewrite.c>
RewriteEngine On
# Ensure the file exists before attemping to download it.
RewriteCond %{REQUEST_FILENAME} -f
# Rewrite requests for file extensions to track.
RewriteRule ^([^/]+\.(zip|app|bin|exe|jar))$ counter.php?filename=$1 [L]
</IfModule>