How are download count and link expiry enforced?
Each DigitalDownload tracks how many times it's been used against its maximum download count, and carries an expiry. When the customer hits the download endpoint, the system validates the token, checks it hasn't expired and hasn't exceeded its allowed downloads, then streams the file and records the download. Once the count is reached or the expiry passes, the link stops working. This…
Each DigitalDownload tracks how many times it's been used against its maximum download count, and carries an expiry. When the customer hits the download endpoint, the system validates the token, checks it hasn't expired and hasn't exceeded its allowed downloads, then streams the file and records the download. Once the count is reached or the expiry passes, the link stops working. This enforces the commercial terms of a digital sale — "three downloads within 30 days," for instance — automatically, without manual policing.