Following my comment here, we can get reliable download counts despite the existence of a CDN via a redirection scheme:
- Add the Cache-Control: no-store header for the download endpoint;
- Log the download statistic.
- Return HTTP302 (Redirect) to another endpoint with the current CDN caching configuration.
I am happy to implement this feature.
One point that is unclear is whether this issue should be address after #1342, given that the server will necessarily process more download counts.
Following my comment here, we can get reliable download counts despite the existence of a CDN via a redirection scheme:
I am happy to implement this feature.
One point that is unclear is whether this issue should be address after #1342, given that the server will necessarily process more download counts.