Skip to content

Count downloads from content delivery network #1517

Description

@LaurentRDC

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions