Content Delivery (CDN)
India-optimised edge caching powered by Varnish and Nginx. Accelerate your website with cache purge API, DDoS protection, and S3 bucket origin support.
Content Delivery (CDN)
HUC Content Delivery is an India-optimised edge caching layer powered by Varnish and Nginx at our Bangalore datacenter. It sits in front of your origin server (or an HUC S3 bucket) and caches your static assets, pages, and API responses — reducing origin load by up to 90%.
Content Delivery is coming soon. The service is currently under development. Pricing and features listed below are subject to change before launch.
This is not a multi-PoP global CDN. HostupCloud Content Delivery is a single-edge cache at our Bangalore datacenter, optimised for fast delivery to Indian users. For global distribution, consider pairing with a traditional CDN provider like Cloudflare.
How It Works
User in India → HostupCloud Edge Cache (Varnish/Nginx) → Cache HIT → Served instantly
→ Cache MISS → Your Origin (server or S3 bucket)- User makes a request — the request hits the HostupCloud edge in Bangalore.
- Cache HIT — if the content is cached, Varnish serves it in microseconds. No request reaches your origin.
- Cache MISS — if the content is not cached, Nginx fetches it from your origin, caches the response, and serves it to the user. Subsequent requests are served from cache.
Features
Varnish Cache Layer
Industry-standard Varnish Cache sits in front of your origin, serving cached responses in microseconds. Typical cache hit rates of 85–95% for static content.
Nginx Reverse Proxy
Nginx handles HTTP/2, gzip/Brotli compression, SSL termination, and request routing before passing uncached requests to your origin.
S3 Bucket as Origin
Use a HostupCloud Object Storage bucket directly as your CDN origin. Upload files to S3, get a delivery URL instantly — no web server needed. Ideal for serving images, videos, fonts, and downloadable files.
Smart Cache Invalidation
Purge individual URLs, path patterns (e.g. /images/*), or your entire cache instantly via the dashboard or REST API — no waiting for TTL expiry.
- Single URL purge — under 1 second
- Wildcard path purge — e.g.
/blog/* - Full cache purge — one click or single API call
Custom Cache Rules
Define cache TTLs, bypass rules, and Vary headers per URL pattern. Full VCL (Varnish Configuration Language) access for advanced users.
Stale-While-Revalidate
Serve stale cached content while fetching a fresh copy in the background. Zero downtime even when your origin is slow or briefly unavailable.
DDoS & Bot Protection
Rate limiting, IP reputation filtering, and volumetric DDoS protection at the edge — malicious traffic is dropped before reaching your origin.
Free SSL / TLS
Free SSL certificates via Let's Encrypt, auto-renewed before expiry. You can also upload a custom certificate. HTTP-to-HTTPS redirect supported.
Real-time Analytics
Live dashboard showing:
- Cache hit/miss ratio
- Bandwidth served
- Request rates
- Top cached URLs
Updated every 30 seconds.
Pricing
Simple pay-as-you-go pricing. No commitments, no plans to choose from — just pay for what you deliver.
| Component | Price |
|---|---|
| CDN delivery | ₹1.50/GiB ($0.0163/GiB) ex. GST |
| Free allowance | 50 GiB/month (with any S3 account) |
| Origin pull (origin → cache) | Included |
| SSL / HTTPS | Included |
| Cache purge | Included |
| Setup | Free |
- All prices exclude GST (18%)
- Billing is monthly, pay-as-you-go — no minimum commitment
- Your site is never taken offline — usage is billed at the end of the month
Free 50 GiB/month — every HostupCloud S3 account gets 50 GiB of free CDN delivery per month. No signup needed — just create a distribution with your S3 bucket as origin.
Pricing Examples
| Monthly Delivery | You Pay |
|---|---|
| 50 GiB | ₹0 (free allowance) |
| 250 GiB | ₹300 |
| 1 TiB | ₹1,536 |
| 10 TiB | ₹15,360 |
What's Included (All Usage Levels)
- Varnish + Nginx edge caching
- Free SSL certificates (Let's Encrypt, auto-renewed)
- HTTP/2 and gzip/Brotli compression
- Cache purge via dashboard and REST API
- Custom cache rules (VCL)
- Real-time analytics (cache hit/miss, bandwidth, top URLs)
- DDoS and bot protection
- Stale-while-revalidate
Getting Started
Step 1: Choose Your Origin
You have two options:
Option A — Your own server: Any HTTP/HTTPS origin works — Apache, Nginx, Node.js, WordPress, Shopify, Laravel, or any web server.
Option B — HUC S3 bucket: Create a bucket at storage.hostupcloud.com, upload your files, and use the bucket endpoint as the CDN origin. No web server required.
Step 2: Create a Distribution
- Log in to your HostupCloud dashboard.
- Navigate to Content Delivery → Create Distribution.
- Enter your origin URL (your server address or S3 bucket endpoint).
- Configure your custom domain (optional) and cache settings.
- Click Create — you'll receive a CNAME endpoint.
Step 3: Update Your DNS
Point your domain (or subdomain like cdn.yoursite.com) to the CNAME endpoint provided:
cdn.yoursite.com CNAME your-distribution.cdn.hostupcloud.comStep 4: You're Live
Varnish and Nginx begin caching your static assets on the first request. No code changes needed — it works as a transparent reverse proxy.
What Gets Cached
Cached by Default
- Images (JPEG, PNG, GIF, SVG, WebP, AVIF)
- CSS and JavaScript files
- Fonts (WOFF, WOFF2, TTF, EOT)
- PDFs and downloadable files
- Video and audio files
Cacheable with Custom Rules
- HTML pages (set TTL per URL pattern)
- API responses (JSON, XML)
- Dynamic content with stable outputs
Never Cached (by Default)
- Authenticated/personalized pages
- POST, PUT, DELETE requests
- Responses with
Cache-Control: no-storeorprivate - Pages with
Set-Cookieheaders
Cache behaviour follows standard HTTP cache headers (Cache-Control, Expires, ETag, Last-Modified). Set proper headers on your origin for best results.
Cache Purge API
Purge cached content programmatically using the REST API:
Purge a Single URL
curl -X POST https://api.hostupcloud.com/cdn/purge \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://cdn.yoursite.com/images/logo.png"}'Purge by Path Pattern
curl -X POST https://api.hostupcloud.com/cdn/purge \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"pattern": "/blog/*"}'Purge Entire Cache
curl -X POST https://api.hostupcloud.com/cdn/purge-all \
-H "Authorization: Bearer YOUR_API_KEY"You can also purge from the dashboard under Content Delivery → Your Distribution → Purge Cache.
Using S3 as CDN Origin
This is the recommended setup for pure static asset delivery with no server required.
Setup
- Create an S3 bucket at storage.hostupcloud.com — see Object Storage docs.
- Upload your files (images, CSS, JS, fonts, videos) to the bucket.
- Create a CDN distribution with the S3 bucket endpoint as the origin:
Origin: https://s3.hostupcloud.com/your-bucket-name - Point your DNS to the CDN CNAME.
- Files are now cached and served from the edge.
Benefits
- No server to manage — just upload files to S3 and they're delivered via the edge cache
- Cost-effective — S3 storage (₹0.65/GiB) + CDN delivery (₹1.50/GiB), no compute costs. First 50 GiB CDN free.
- Reliable — S3's 11-nines durability with edge cache performance
- Simple updates — upload new files to S3 and purge the cache
CMS Compatibility
Content Delivery works with any origin:
| CMS / Framework | Compatibility |
|---|---|
| WordPress | Full — recommended cache plugin sends purge calls on publish/update |
| Shopify | Full — works as transparent proxy |
| WooCommerce | Full — cart/checkout bypassed by default |
| Next.js | Full — great for SSG/ISR sites |
| Laravel | Full — static assets cached, dynamic routes configurable |
| Static HTML | Full — ideal use case |
| HUC S3 bucket | Full — recommended for asset-only delivery |
Performance
| Metric | Value |
|---|---|
| Cache Hit Rate | 85–95% (typical for static content) |
| Edge Latency | Sub-20ms for users in India |
| Origin Offload | Up to 90% reduction in origin requests |
| Compression | gzip + Brotli |
| Protocol | HTTP/2 |
Limitations
- Single edge location — Bangalore datacenter only (not a global CDN)
- Best for Indian traffic — users outside India will route to Bangalore, adding latency
- No edge compute — no serverless functions at the edge
- No image optimization — images are served as-is from origin/cache
SLA
| Metric | Value |
|---|---|
| Availability | 99.9% |
| Network | 99.99% |
See Support & SLA for credit schedules and claim procedures.
Next Steps
- Set up Object Storage (S3) to use as a CDN origin
- Review Network & Connectivity for bandwidth and peering info
- Check Security & Compliance for DDoS protection details
- Need help? Open a support ticket