CDN & Delivery
Understand how AWS CloudFront CDN accelerates file delivery worldwide and how to use it effectively.
What is CDN?
A Content Delivery Network (CDN) stores copies of your files at edge locations around the world. When a user requests a file, they receive it from the nearest edge location instead of the origin server, resulting in:
- Faster loading: Lower latency due to geographic proximity
- Reduced load: Less bandwidth used on origin server
- Better reliability: Multiple edge locations provide redundancy
AWS CloudFront Integration
ScallerFox uses AWS CloudFront, one of the world's largest and most reliable CDNs, with over 450 edge locations globally.
Global Coverage
450+ edge locations worldwide
High Performance
Sub-100ms latency in most regions
Reliability
99.99% uptime SLA
Accessing Files via CDN
Once uploaded, files are automatically available via CDN URLs:
CDN URL Format:
https://cdn.scallerfox.com/your-bucket/path/to/file.jpg Files are automatically cached at edge locations. Updates to files are propagated within 5-15 minutes depending on cache settings.
Custom Domain
You can use your own domain for file delivery. This is available in STANDARD and higher packages.
Benefits:
- Brand consistency with your own domain
- Automatic SSL certificate provisioning
- Simplified URL management
DNS Setup:
- Add CNAME record:
cdn.yourdomain.com → cdn.scallerfox.com - Wait for DNS propagation (5-30 minutes)
- SSL certificate will be automatically issued
- Files will be accessible via your custom domain
Cache Management
CloudFront caches files at edge locations to improve performance. Understanding cache behavior helps optimize delivery:
Cache Headers
Files are cached based on HTTP headers. You can control caching behavior:
- • Static assets (images, CSS, JS): Long cache (1 year+)
- • Dynamic content: Short cache or no cache
- • Use Cache-Control headers to control behavior
Cache Invalidation
When you update a file, CDN cache is automatically invalidated. Updated files are available within 5-15 minutes.