WooCommerce and Easy Digital Downloads
Media Cloud can enable you to use pre-signed URLs for downloadable products with both WooCommerce and Easy Digital Downloads.
Media Cloud can enable you to use pre-signed URLs for downloadable products with both WooCommerce and Easy Digital Downloads.
Use Pre-Signed URLs
When this is enabled, Media Cloud will generate signed URLs for downloadable products that will expire and become unusable within a specified time period.
Pre-Signed URL Expiration
The number of minutes that a signed URL is valid for.
WooCommerce settings
Find these under Media Cloud → Settings → Integrations → WooCommerce Settings.
| Setting | Default | Description |
|---|---|---|
| Use Pre-Signed URLs | On | Generate expiring URLs for downloadable products. |
| Pre-Signed URL Expiration | 1 | Minutes the download URL is valid. |
If pre-signed URLs are enabled in the storage settings but disabled here, storage-level signing still applies.
Easy Digital Downloads settings
Find these under Media Cloud → Settings → Integrations → Easy Digital Downloads.
| Setting | Default | Description |
|---|---|---|
| Use Pre-Signed URLs | On | Generate expiring URLs for downloadable products. |
| Pre-Signed URL Expiration | 1 | Minutes the download URL is valid. |
| Download Original Image | Off | Download the unscaled original when the product is an image. |
Provider requirements
Signed downloads require a storage provider that supports per-file ACLs and pre-signed URLs. The following providers are not suitable for protected downloads:
- Cloudflare R2
- Bunny CDN
- Backblaze S3
- Supabase
Use Amazon S3, Google Cloud Storage, or DigitalOcean Spaces when you need expiring download links.
Testing downloads
- Create a test product with a downloadable file in cloud storage.
- Complete a test checkout.
- Download the file immediately. It should work.
- Wait until the expiration passes and try the same link again. It should fail.
If the link fails immediately, check the storage ACL, the pre-signed URL setting, and the CDN in front of the bucket. A CDN that caches signed URLs can serve expired links; exclude signed download URLs from full-page and CDN caching.
WooCommerce content replacement
Media Cloud 4.7.4 fixed a WooCommerce issue where trimmed post content caused URL replacement to fail. If product descriptions still contain local media URLs on an older version, update Media Cloud and clear WooCommerce’s caches.
Need a hand with this guide?
Send support the exact step you’re stuck on and we’ll help you finish the setup.