Why I host my images on a CDN for faster loading
A personal website often begins with restraint: a short biography, considered typography, generous white space, and a small set of photographs. As I add more visual material, the images become the heaviest part of each request. Hosting those files on a content delivery network gives me a practical way to serve them from locations closer to visitors while keeping the origin simple and resilient.
A content delivery network changes where that weight is handled. It caches copies of images at edge locations, reduces the distance each file travels, and absorbs repeated requests before they reach the main server. The result is faster photography delivery, but only when the files themselves have been prepared sensibly and the cache rules are designed with care.
What a content delivery network changes
A content delivery network, or CDN, stores copies of files at edge locations around the world. When someone opens my site, the request for a photograph is directed to a server that can reach the visitor more directly. The file travels a shorter network path, and the main origin server does not need to send every copy itself. That basic arrangement makes image-heavy pages feel lighter without changing their appearance.
For an Australian visitor in Sydney or Melbourne, an edge location may provide a relatively short route. Someone opening the same page in Perth, Adelaide or Canberra can still benefit because cached content may travel from a different point in the network. The exact route depends on the CDN provider and local peering arrangements, yet the principle remains sound: distance costs time, and caching removes many unnecessary journeys.
The network also protects the origin during sudden traffic increases. If a photograph becomes popular, the CDN can continue serving the cached file while my origin handles far fewer requests. This is particularly useful for Australian online retailers and publishers whose campaigns can produce sharp peaks during Black Friday, Christmas or Boxing Day sales.
Why speed belongs in a restrained design
A page can look minimal and still feel slow when its images are poorly handled. The current home page at the personal domain is intentionally spare: strong typography and white space carry the first impression, while photography becomes meaningful because each image has room to be seen. Fast delivery supports that restraint by keeping the visual material from blocking the text or making every navigation feel laborious.
Mobile use makes this especially important. Australian shoppers often browse products, compare stores and check delivery details on a phone while moving between train stations, shops and home. Local retailers compete with international marketplaces for those visits, so a page that renders its main photograph promptly can hold attention better than one that leaves a blank rectangle on screen while a large file downloads.
Speed also affects accessibility and confidence. Visitors using older phones, slower mobile connections or a regional NBN plan should not have to wait excessively for the content they came to see. Clear loading behaviour and stable image dimensions reduce uncertainty, while a reliable CDN gives people a better chance of reading the page before their data allowance or patience runs out.
Australian distance makes caching valuable
Australia’s geography makes a difference that is easy to overlook when every site is tested from one location. A server in Sydney may be perfectly responsive for a Sydney visitor, yet much less convenient for someone in Perth or Darwin. With a CDN, an image already stored at a suitable edge location can reach the visitor without travelling from the eastern coast on every request.
Caching is especially helpful for repeat visits. A reader in Brisbane might open the same portfolio page each week, and the browser can keep some assets locally while the CDN serves others from its nearest available point. The original server then acts as a fallback rather than the bottleneck. This division of labour remains effective when connection quality changes between a central-city 5G network and a less consistent mobile signal outside major metropolitan areas.
The preference for useful, low-friction experiences also shapes how I approach the web. I keep the same principle in the walking meetings guide, where clear purpose and a change of environment support useful conversation. Digital speed serves a similar purpose: it removes friction so the substance of the page can receive attention straight away.
Cache rules are part of the design
Long-lived caching allows a browser or edge server to reuse an image without checking the origin each time. For photographs whose names include a version or fingerprint, I can set a long Cache-Control lifetime and use the immutable directive. A file such as harbour-fog-a82c1.webp can remain available for months because its URL changes whenever the image changes.
The browser cache and the CDN cache perform different jobs. The browser stores files for a particular visitor on a particular device, while the CDN stores shared copies across its network. Configuring both requires separate consideration. A short browser lifetime can make updates appear immediately, but it may also force repeat downloads that the edge could have handled more efficiently.
A CDN can also use conditional requests and stale content while it checks for a newer version. These techniques help during normal browsing, although they do not remove the need for deliberate cache invalidation. If I replace a photograph without changing its filename, I either need to purge that file from the CDN or change the URL. Versioned filenames make that decision straightforward and keep the publishing process predictable.
Optimisation still comes before delivery
A CDN delivers the file it receives, so preparation happens before distribution. My image optimisation guide covers the important choices: sensible dimensions, modern formats, compression and a quality level suited to the photograph. These steps determine how much data each visit must transfer, regardless of where the visitor is located.
Responsive images are central to that work. A small phone should not download a file created for a large desktop display, and a wide screen should not receive a thumbnail. srcset and sizes let the browser select an appropriate derivative, while AVIF or WebP can reduce the file size compared with a conventional JPEG. The CDN then caches the exact variants that visitors request instead of storing every possible size as a generic fallback.
Loading behaviour needs equal attention. A hero photograph may deserve eager loading or a carefully chosen preload, while images further down the page can use lazy loading. Width and height attributes prevent the page from shifting as files arrive. These details work alongside the CDN: optimised files travel less data, stable layouts avoid distraction, and edge delivery makes the remaining payload arrive sooner.
A measured workflow for image publishing
My publishing workflow begins with the original image, followed by cropped and resized versions generated in suitable formats. Each derivative receives a descriptive, versioned filename before being uploaded to the origin. I check the visual quality at several screen sizes, confirm that alternative text is present, and then release the files through the CDN with the intended cache headers.
Testing should include the conditions common to Australian visitors. I examine mobile data connections, metropolitan broadband and the slower upload speeds found on some regional NBN plans. I also use reports from real visitors to compare loading times across Australian states rather than relying entirely on a test server in one city. During domestic retail campaigns, monitoring becomes more valuable as traffic arrives in concentrated bursts.
A CDN still has operational costs and dependencies, so I keep the originals backed up, maintain a straightforward publishing process and avoid sending unnecessary personal data through image requests. The benefit is clearest on pages where photographs matter: a visitor can see the work sooner, repeat access remains inexpensive, and the origin is protected from routine traffic. That makes the CDN an extension of the site’s visual restraint rather than an extra layer of clutter.