
A website hosted in one region may serve visitors across many countries, but every request does not need to travel back to the same origin server. A content delivery network (CDN) can serve eligible files from distributed edge locations, reduce repeated origin requests and add a layer for routing and security. The results depend on how the CDN is configured: cache rules, cache keys, DNS, HTTPS, origin access and private-content exclusions all matter.
CDN optimisation means delivering reusable content from suitable edge locations while keeping dynamic and private responses safe. Start by mapping your audience and assets, configure DNS and TLS correctly, create separate cache policies for static, public and private routes, then measure cache behaviour and real-user delivery.
One origin. Multiple edge locations.
Explore how a CDN can serve reusable content closer to visitors.
Important: edge routing and cache availability depend on the CDN provider, network conditions, cache policy and the requested resource. Not every request is served from an edge cache.
1. What a content delivery network actually does
A content delivery network (CDN) is a distributed network of servers that delivers website content from locations closer to visitors. Instead of requiring every browser request to travel all the way to one central hosting server, a CDN can serve eligible files from an edge location near the visitor. The network may also route requests, apply security controls, compress responses and protect the origin from unnecessary traffic.
The word “content” is important. A CDN is particularly effective for resources that can be reused across many visitors: images, stylesheets, JavaScript bundles, fonts, downloadable files and selected public pages. When an edge location already has a fresh copy, it can respond without fetching that object from the origin server again. When it does not, the CDN may retrieve the object from the origin, store it according to the configured policy and return it to the visitor.
A CDN does not automatically make every website fast. It adds another layer to the delivery path, and that layer needs correct DNS, TLS, cache rules, origin configuration and monitoring. A poorly configured CDN can serve stale content, cache private information, create redirect loops or add complexity without improving the requests that matter. The goal is to place reusable content closer to users while keeping dynamic and sensitive operations correct.
2. Why CDN optimisation matters for websites in 2026
A website hosted in one region may serve visitors spread across several countries. The physical distance between a visitor and the origin can increase network round trips, especially when a page needs many separate resources. A distributed edge network can reduce the distance for cacheable assets and absorb some repeated requests before they reach the hosting environment.
CDN optimisation is also about resilience and origin capacity. When common static files are served from edge locations, the origin has fewer repetitive asset requests to process. During a traffic spike, a well-designed cache can continue serving popular, fresh objects even while the origin is handling dynamic work. Some CDN platforms also provide DDoS mitigation, web application firewall controls, bot management and origin shielding, although exact capabilities vary by provider and plan.
The practical benefit depends on audience geography, asset reuse, cacheability, origin location, page architecture and the CDN's network. A local business whose visitors are concentrated near its hosting region may see a different result from an international publisher or ecommerce brand. Measure real user locations and resource behaviour before selecting a plan or promising a performance gain.
3. CDN versus web hosting: understand the difference
Web hosting stores or runs the website's origin application and data. It may serve PHP, generate HTML, connect to a database, process forms and manage files. A CDN is a delivery and edge layer placed in front of, or alongside, that origin. It can distribute cached content, route requests and apply edge security features, but it does not replace the application's hosting environment for most conventional websites.
A CDN is not the same as upgrading a shared hosting plan to a VPS or dedicated server. More origin CPU, memory or PHP workers may help when application execution is the bottleneck. A CDN may help when repeated public assets, geographic distance or origin request volume are important factors. In many architectures both are useful, but they solve different problems.
The distinction also helps with troubleshooting. If a page's HTML is generated slowly at the origin, caching its images at the edge will not necessarily fix the HTML response. If images are slow for visitors far from the origin, a CDN may be useful even when the application server has spare capacity. Diagnose the request type and bottleneck before changing infrastructure.
4. How edge servers, points of presence and origin servers work
A point of presence (PoP) is a network location where a CDN provider operates infrastructure that can handle visitor requests. A request is routed through the provider's network to an appropriate location. If the requested object is present and fresh in that location's cache, the edge can return it. Otherwise, the edge follows the provider's cache and routing rules to obtain the object from an upstream cache or the origin server.
The origin is the authoritative source for the website's content. It may be a shared hosting account, VPS, cloud storage bucket, application cluster or another backend. The CDN needs a secure and reliable way to reach it. DNS records, origin hostnames, certificates, firewall allow-lists and host-header settings must match the provider's configuration. A small mistake can cause TLS errors, redirect loops, host-not-found failures or a CDN that cannot fetch the site.
Some providers use tiered caching or regional parent caches so that an edge location can retrieve an object from another cache layer instead of repeatedly contacting the origin. This can reduce origin traffic for popular files, but the hierarchy and behaviour are provider-specific. Do not assume every visitor is served by the geographically nearest physical server; routing decisions may consider network conditions, availability and provider policy.
5. How to choose a CDN for a small business or growing website
Start with the audience and the website's delivery requirements. List the main countries or regions where visitors are located, identify the largest and most frequently requested assets, and determine whether pages are mostly static, dynamic or personalised. A publisher, portfolio site, online store, membership platform and SaaS dashboard can have very different caching and security needs.
Compare providers on more than headline bandwidth or the number of advertised locations. Review TLS support, HTTP protocol support, cache-rule flexibility, purge options, analytics, origin shielding, DDoS protection, WAF features, image optimisation, log access, support quality, pricing model and limits. Confirm whether important capabilities are included in the plan you would actually purchase. Product features and plan entitlements change, so check current provider documentation before implementation.
For a small website, ease of configuration and transparent billing may matter more than advanced edge compute features. For an ecommerce or authenticated platform, granular cache control, secure origin access and detailed logs may be more important. Create a shortlist based on real requirements, then test one representative route and asset set before migrating the entire site.
6. Prepare DNS, HTTPS and the origin before enabling a CDN
Before changing DNS, record the current zone configuration, including A, AAAA, CNAME, MX, TXT and any verification records. Identify which hostnames serve the website, which handle email, and which point to third-party services. A CDN onboarding process may ask you to change nameservers or proxy selected DNS records. Apply only the changes required by the provider and preserve mail-related records exactly.
Check the origin's TLS certificate and the CDN's supported SSL/TLS modes. The browser-to-edge connection and edge-to-origin connection are separate connections; both should be configured securely. Avoid a mode that encrypts traffic only between the visitor and CDN while leaving the origin connection unprotected. Confirm certificate validity, hostname matching, renewal behaviour and whether the origin accepts connections using the expected SNI and Host header.
If the origin should only accept requests from the CDN, configure firewall restrictions carefully and keep an emergency access path for maintenance. Do not block your own health checks, deployment system or trusted administrative access. Test the origin directly where possible, then test through the CDN and compare response codes, redirects and certificate details. Make DNS changes during a planned window and retain a rollback plan.
7. Understand browser caching, CDN caching and origin caching
Caching can happen in more than one place. A browser cache stores resources on an individual visitor's device. A shared CDN cache can serve the same eligible object to many visitors. The origin may also use application, reverse-proxy or server-level caches. Each layer has its own purpose, freshness rules and invalidation behaviour.
The HTTP Cache-Control response header communicates caching directives to browsers and shared caches. Directives such as public, private, no-store, max-age and s-maxage have different meanings. For example, public indicates that a response may be stored by shared caches when other rules permit it, while private is intended for a single user's private cache. Do not use public caching for account pages, personal dashboards, order details or responses containing user-specific information.
A CDN may also support provider-specific headers or cache rules that control edge behaviour separately from browser behaviour. Cloudflare documents CDN-Cache-Control and Cloudflare-CDN-Cache-Control for this purpose. The exact precedence between origin headers, dashboard rules and provider-specific directives depends on the platform. Read the relevant documentation and test actual response headers rather than assuming a setting has the effect its label suggests.
8. Set Cache-Control headers for different resource types
Static assets with versioned filenames are usually strong candidates for longer browser and edge cache lifetimes. A CSS file named app.4f3a21.css or an image with a content hash can be cached for a long period because a changed file receives a new URL. This approach is often called cache busting or fingerprinted asset versioning.
HTML documents usually need a shorter freshness policy or revalidation because page content can change without a new asset filename. Public article pages may be cacheable for a carefully selected period, while logged-in or personalised pages should normally bypass shared caching unless the application and cache key design explicitly isolate each user. APIs require even more care: a public catalogue endpoint may be cacheable, but a profile or account endpoint is not automatically safe to share.
Use a deliberate policy rather than one global rule for the whole domain. A site might assign long-lived caching to fingerprinted static assets, shorter edge caching to public HTML, and no shared caching to private routes. The correct durations depend on how frequently content changes and how quickly updates must appear. Include a plan for purging or versioning when content changes.
Choose a sensible caching approach
Illustrative guidance only. Always confirm the application's response behaviour and provider rules.
Versioned assets
CSS, JavaScript, fonts and images with content-hashed filenames.
Longer cache lifetimeNew filename when the asset changes.Public HTML
Public article pages and pages that are identical for all visitors.
Shorter TTL / revalidationDefine how quickly updates must appear.Private responses
Accounts, carts, dashboards, checkout and personal API data.
Bypass shared cacheProtect user-specific information.# Versioned public asset
Cache-Control: public, max-age=31536000, immutable
# Public HTML that should revalidate
Cache-Control: public, max-age=0, must-revalidate
# Private user-specific response
Cache-Control: private, no-store
These are example policies, not universal defaults. Confirm how your CDN interprets origin headers and whether a provider-specific edge rule overrides them.
9. Build CDN cache rules by URL path and content type
Cache rules determine which requests are eligible for storage, how long a response remains fresh and which request properties form part of the cache key. A simple starting point is to classify routes into static assets, public pages, public API responses and private or transactional routes. Each group should have an explicit policy and a documented reason.
For example, an assets directory containing versioned CSS, JavaScript and images may be assigned a longer edge TTL. A public blog route may use a shorter TTL with revalidation. A login route, checkout path, account area or admin interface should be excluded from shared caching unless there is a specific, reviewed design that makes it safe. Avoid broad “cache everything” rules that can override application-level privacy directives.
Cloudflare Cache Rules can adjust cache eligibility and TTL behaviour for matching requests. Google Cloud CDN supports cache modes and path-based policies through its load-balancer configuration. These are examples of provider-specific controls, not interchangeable settings. Use the provider's current interface and test each rule against both expected and unexpected paths.
10. Cache keys: prevent duplicate objects and protect user data
A cache key identifies the representation stored for a request. It commonly includes the URL and may include selected query parameters, headers or cookies depending on the CDN. If irrelevant tracking parameters create separate keys, the same image or page can be stored multiple times and cache efficiency can fall. If a meaningful variation is removed from the key, the CDN may return the wrong version of a response.
Suppose a public page is identical for all visitors but tracking parameters differ. A provider may allow selected query parameters to be excluded from the cache key after the application confirms they do not change the response. By contrast, language, currency, device format or user state may legitimately affect the representation. These dimensions must be represented in the cache key or handled through another safe design.
Never remove a session cookie, authorisation state or other user-specific dimension from the cache key simply to increase a cache-hit metric. Google Cloud's cache-key guidance warns that excluding components can cause content intended for one user to be served to another if the backend response varies based on that component. Cache correctness and privacy take priority over a higher cache-hit ratio.
11. Handle dynamic websites, ecommerce and logged-in users safely
Dynamic content is generated or varied based on current data, user identity, permissions, location, inventory, pricing or other request context. It is not automatically uncacheable, but it requires a much more careful design than static files. A public product description may be reusable, while a cart, personalised recommendation, account balance or order status must remain isolated to the relevant user.
For ecommerce, separate public product information from private checkout and account operations where practical. Product images and public catalogue assets can often be cached aggressively when URLs are versioned and inventory or price freshness is handled correctly. Cart contents, payment state, customer addresses and personalised discounts should not be shared through a public cache. Review cookies, Set-Cookie headers, authorisation headers and query parameters when defining cache rules.
For membership websites and SaaS applications, create explicit bypass policies for authentication, admin and user-specific API routes. Test with at least two separate accounts and verify that one user's response can never appear in the other's session. Also test logout, role changes, permission updates and expired sessions. A CDN configuration is part of the application's security boundary and should be reviewed like application code.
12. Cache invalidation, purging and versioned assets
A cached object can remain available after the origin content changes until its freshness period expires or the cache is invalidated. This creates a familiar operational question: how can a site publish a new page, image or stylesheet and make sure visitors receive the intended version? There is no single invalidation method that is best for every resource.
Versioned filenames are especially useful for static assets. When a new build generates a new filename, browsers and CDNs can treat it as a new object without waiting for the old copy to expire. For HTML and content pages, a purge by URL or a tag-based purge may be more appropriate. Some platforms support purging by cache tag, hostname, prefix or entire zone, but scope and limits vary.
Avoid purging the entire site after every small update unless there is a clear reason. A broad purge can create a cache cold-start, sending a wave of requests back to the origin at once. Prefer targeted invalidation, content versioning and a controlled deployment sequence. After purging, verify the new response and ensure that the origin is not overloaded by simultaneous cache misses.
13. Optimise image and file delivery through the CDN
Images often account for a large share of page transfer size, particularly on product, portfolio and editorial pages. A CDN may offer image resizing, format negotiation, quality adjustment or device-aware delivery. These features can reduce transfer size when correctly configured, but the source image, requested dimensions and browser support still matter.
Use responsive image markup and provide dimensions so the browser can reserve the correct layout space. Avoid delivering a very large desktop image to a small mobile card. Modern formats such as WebP and AVIF can reduce file size for many image types, but verify visual quality and fallback behaviour for your audience. Do not repeatedly transform the same image into unlimited width and quality combinations; constrain supported variants to keep cache keys manageable.
Compression for text resources is also important. Brotli or gzip can reduce the size of HTML, CSS, JavaScript and other compressible responses. Confirm that compression is enabled at the correct layer and that already-compressed formats such as JPEG, WebP, AVIF, ZIP and many video formats are not needlessly recompressed. Review the Content-Encoding and Vary headers when debugging representation differences.
14. HTTP/2, HTTP/3 and connection delivery
Modern HTTP protocols improve how browsers and servers exchange multiple resources. HTTP/2 supports multiplexing multiple streams over a single connection and compresses header fields, reducing some overhead compared with older HTTP/1.1 patterns. HTTP/3 uses QUIC over UDP and can improve connection behaviour in some network conditions, including scenarios where packet loss affects multiple streams.
A CDN can terminate client connections at its edge and communicate with the origin using a different protocol. This means browser-to-edge and edge-to-origin protocol support should be considered separately. Enabling a protocol at the CDN does not guarantee that every visitor uses it; browser support, network conditions, TLS configuration and provider settings all influence negotiation.
Do not treat HTTP/3 as an automatic fix for every slow page. Large JavaScript bundles, uncacheable HTML, slow origin computation and third-party scripts can remain bottlenecks. Confirm the negotiated protocol using browser developer tools or an appropriate diagnostic tool, then measure real user outcomes across representative networks.
15. Origin shielding and tiered caching
Origin shielding introduces an additional cache layer or designated upstream location between edge nodes and the origin. Instead of many edge locations independently requesting the same missing object from the origin, they may retrieve it through a shared upper-tier cache. This can reduce repeated origin fetches for popular content and help control bandwidth and request load.
Tiered caching is most useful when the site has cacheable assets requested from many regions. It is less useful when nearly every request is unique, private or dynamic. The benefit also depends on the provider's architecture, cache-key design, object popularity and geographic distribution. Review the provider's explanation of how requests move between lower-tier and upper-tier caches before enabling additional features.
Origin shielding does not remove the need to secure the origin. Restrict direct access where appropriate, keep certificates valid, use firewall rules carefully and monitor origin requests. If the CDN is bypassed, an exposed origin can still receive traffic directly. A layered design should include a recovery path for legitimate maintenance and provider outages.
16. CDN security: DDoS protection, WAF and bot controls
Many CDN providers combine content delivery with network and application security services. Depending on the product and plan, these may include DDoS mitigation, web application firewall rules, rate limiting, bot detection, IP reputation signals and managed security rules. These features can reduce unwanted traffic before it reaches the origin, but they need tuning to avoid blocking legitimate visitors or integrations.
Start with a baseline of normal traffic and identify critical paths such as login, search, forms, checkout and public APIs. Apply rate limits to endpoints that are expensive or frequently abused, but set thresholds based on expected user behaviour and shared network environments. A rule that blocks too aggressively can affect customers behind corporate networks, mobile carrier NAT or privacy services.
Use the CDN as one layer of defence, not the only one. Keep application validation, secure authentication, patching, least-privilege access, backups and origin protection in place. Ensure that security events are logged and that the team can distinguish a blocked attack from a false positive. For sensitive sites, test rule changes in a controlled mode before enforcing them broadly.
17. Read CDN analytics and cache status correctly
A CDN dashboard may report requests, data transfer, cache status, bandwidth saved, origin traffic, geographic distribution, response codes and security events. These metrics help teams understand how the delivery layer behaves, but the exact labels and calculations differ between providers. A cache-hit ratio is useful only when interpreted alongside the type of traffic and the correctness of the cached responses.
A high cache-hit ratio is not automatically proof of a fast website. It may reflect many small static requests while the main HTML document remains slow or uncacheable. A lower ratio may be normal for a personalised application or a site whose assets change frequently. Separate metrics by hostname, route, content type and cache status where the provider allows it.
Review edge response time and origin response time separately when available. Monitor cache misses, revalidations, expired objects, origin errors, TLS failures and unexpected increases in bandwidth. If a deployment causes a sudden drop in cache hits, check whether asset URLs or cache keys changed. If origin traffic rises unexpectedly, investigate rule changes, query-string variations and bot activity.
18. Common CDN problems and how to troubleshoot them
A redirect loop can occur when the browser connects to the CDN using HTTPS but the origin or application believes the request is HTTP and redirects repeatedly. Check the TLS mode, forwarded protocol headers and application URL configuration. Make sure the origin knows when the original visitor connection was secure, and avoid conflicting redirect rules at the CDN, web server and application layers.
Stale content may indicate a long TTL, a purge that did not cover the affected URL, a versioned asset reference that was not updated or a cache rule that overrides origin headers. Inspect the response headers, cache status and exact URL. Test in a clean browser session and from more than one region if possible. Do not assume that clearing your local browser cache clears the CDN's edge cache.
A 403 response can be caused by WAF rules, access restrictions, signed URL validation, origin permissions or application authentication. A 5xx response may come from the edge, the origin or an upstream dependency. Use request IDs and provider logs to trace the failure. If the origin is healthy but edge requests fail, review DNS, certificates, host headers and firewall allow-lists. If the origin itself fails, the CDN cannot repair the underlying application problem.
19. A practical CDN implementation plan for a website
Begin with an inventory. List all hostnames, DNS records, origin IPs or hostnames, SSL certificates, critical routes, static asset directories, third-party integrations and any private application areas. Record the current website behaviour and retain the existing DNS configuration so that the team can roll back if needed. Confirm the hosting provider's requirements before changing nameservers or proxy settings.
Next, onboard a test hostname or a limited set of public assets where possible. Configure TLS, verify origin connectivity and create separate cache policies for fingerprinted assets, public pages and private routes. Check cache keys and response headers. Test the website while logged out and while logged in, using more than one account if the site supports user-specific content. Confirm that forms, payments, webhooks, admin access and API requests still behave correctly.
After the initial test, expand the configuration in stages. Enable appropriate compression and protocol features, review WAF and rate-limit settings, and verify that the origin is protected without blocking legitimate traffic. Purge only the necessary objects during deployment. Monitor cache status, origin traffic, response codes and user experience for several normal traffic cycles before declaring the migration complete.
20. CDN setup considerations for a Hostinger-hosted website
A website hosted on Hostinger can use an external CDN when its domain DNS and origin configuration are compatible with the selected provider. The exact process depends on the hosting plan, domain DNS location, whether the site uses Hostinger's own CDN options, and whether another proxy or security service is already in front of the origin. Avoid enabling two overlapping proxy layers without understanding how they handle TLS, caching and client IP headers.
Before changing DNS, check where the domain's authoritative nameservers are managed and whether email records are hosted separately. If nameservers are moved to a CDN provider, recreate all required DNS records, including MX, SPF, DKIM, DMARC and verification TXT records. If only selected records are proxied, make sure the web hostnames are configured as intended and mail-related hostnames remain appropriate for their service.
Test the origin and CDN path separately. Confirm the correct origin address, SSL mode, redirects, PHP application behaviour, upload paths and admin routes. If the website uses a payment gateway, webhook, API or external service, check whether it relies on the visitor IP, request headers or a specific hostname. Keep the previous DNS zone export and a rollback plan until the new setup is stable.
21. CDN configuration mistakes that can damage performance or security
The most serious mistake is caching every response without understanding whether it contains private or personalised data. A cache rule that ignores cookies or authentication state can expose account information or serve one user's content to another. Always test with multiple users and explicitly bypass private routes.
Another mistake is setting extremely long cache lifetimes for files whose URLs never change. Visitors may continue receiving an old stylesheet or script after a deployment. Use versioned filenames or a deliberate invalidation process. At the opposite extreme, very short TTLs can cause repeated origin requests and reduce the value of the edge cache.
Other common problems include proxying the wrong DNS records, forgetting email records during nameserver migration, using incompatible SSL modes, allowing unlimited query-string variations, purging the entire cache too often, and assuming that a CDN replaces origin security. Document the configuration and assign an owner to review changes before production rollout.
22. How to measure whether CDN optimisation is working
Define the expected outcome before the rollout. Depending on the website, this may include reducing origin requests for static assets, improving delivery consistency for international visitors, lowering bandwidth use, improving edge response time or reducing exposure of the origin to repetitive traffic. Avoid using a single cache-hit percentage as the only success measure.
Compare the same routes and assets before and after implementation. Use representative locations, devices and network conditions. Review response headers, cache status, transfer size, time to first byte and total request timing. Where possible, compare real-user data over similar time periods and account for changes in traffic, content, advertising campaigns and deployments.
Measure failures as well as successes. Track 4xx and 5xx responses, TLS errors, blocked legitimate requests, stale content reports, cache purge failures and origin availability. A CDN change is successful only when it improves delivery or protection without introducing privacy, correctness or reliability problems. Document the baseline and keep the configuration reversible.
23. Frequently asked questions about website CDN optimisation
What is CDN optimisation? CDN optimisation is the process of configuring a content delivery network so that eligible content is delivered efficiently and safely from edge locations. It includes cache policies, cache keys, compression, routing, origin protection, security rules and performance measurement.
Does a CDN make every website faster? No. A CDN can improve delivery for cacheable resources and geographically distributed audiences, but it may not fix slow application code, database queries, uncacheable personalised pages or third-party scripts. The effect depends on the workload and configuration.
Is a CDN the same as web hosting? No. Hosting runs or stores the website's origin application and data. A CDN distributes eligible content and can provide routing and edge security services in front of the origin.
Should I cache HTML pages on a CDN? Public HTML may be cacheable when the response is identical for visitors and the freshness policy is appropriate. Logged-in, personalised, account, cart and checkout pages generally need to bypass shared caching unless a carefully isolated design is in place.
What is a cache hit? A cache hit occurs when the requested object is available and fresh in the relevant cache layer, allowing it to be served without retrieving it from the origin. Provider-specific cache status labels should be checked in that provider's documentation.
How long should CDN cache TTL be? There is no universal TTL. Versioned static assets can often use longer lifetimes, while HTML and frequently updated content may need shorter lifetimes or revalidation. Private data should not be placed in a shared cache.
Can I use a CDN with Hostinger hosting? In many configurations, yes, provided DNS, TLS and origin settings are compatible. Review Hostinger's current instructions and the selected CDN provider's setup guide before changing DNS.
Can a CDN protect a website from DDoS attacks? Many CDN providers offer DDoS mitigation and additional security controls, but coverage, limits and features vary by provider and plan. A CDN should complement secure application design and origin protection.
Will a CDN improve SEO rankings directly? A CDN is not a guaranteed ranking factor or a shortcut to higher rankings. It may help deliver pages and assets more consistently, which can support user experience, but content quality, technical accessibility, relevance and many other factors remain important.
24. Build a delivery layer that supports your audience
A CDN can become an important part of a website's delivery architecture, particularly when visitors are distributed across regions or the site repeatedly serves large public assets. Its value comes from thoughtful edge caching, reliable DNS and TLS, correct cache keys, controlled invalidation, origin protection and security rules that match the application.
In 2026, the strongest CDN strategy is not to cache everything or enable every available feature. It is to classify content, understand which responses can safely be reused, protect user-specific data, test the delivery path and measure real outcomes. A small website may need only a straightforward static-asset policy, while a global ecommerce or SaaS platform may need granular rules and a more advanced edge architecture.
Treat CDN configuration as part of the website's production system. Document rules, test deployments, monitor cache behaviour and review provider changes. When the edge layer is configured around the actual audience and application, it can reduce avoidable origin work and create a more consistent delivery experience without sacrificing correctness or security.
Is your CDN rollout ready?
Tick the checks completed by your team.
0 of 8 checks completed
Build a website ready for a wider audience
Explore website development and technical improvement services from TopRank Solution. Review the scope and deliverables to find a solution that matches your website's current requirements.
Explore website development services ↗ CDN outcomes depend on audience location, origin configuration, cacheability, provider network and implementation. No fixed performance result is guaranteed.25. Official CDN documentation and further reading
CDN controls and product features vary by provider and plan. Use the official documentation for the service you deploy, and verify current behaviour before applying cache, DNS or security changes.
- Cloudflare: Cache Rules — Configure which requests are eligible for caching and how long content remains cached.
- Cloudflare: Default Cache Behaviour — Understand how cache-control headers and response attributes affect default behaviour.
- Cloudflare: CDN-Cache-Control — Control CDN caching separately from browser caching where supported.
- Cloudflare: Cache Performance — Interpret cache status and improve cache ratios without ignoring content correctness.
- Google Cloud CDN: Caching Overview — Understand cache modes, cache keys and cache policy behaviour.
- Google Cloud CDN: Best Practices — Review content delivery and cache-key practices, including user-specific content.
- MDN: Cache-Control — Reference for HTTP caching directives used by browsers and shared caches.
- MDN: ETag — Understand entity tags and conditional validation of cached resources.

