Back to all questions

What Type of Content is Typically Stored on Edge Servers?

Edward Tsinovoi
Edge Architecture
November 12, 2024

Edge servers, especially within CDNs, typically store content that needs to be delivered quickly to end users. This includes cached static assets like images, videos, CSS, and JavaScript files. 

By storing frequently accessed data closer to users, edge servers speed up access times, reduce latency, and improve overall website performance.

1. Static Content

Static content, which doesn’t change frequently, is the main type of data stored on CDN edge servers

This content type benefits the most from caching at the edge, as it doesn’t need to be refreshed for each user session.

  • Images: High-resolution images like product photos, logos, and graphics are essential for websites but are often large files. Edge servers cache these images, enabling faster loading times and minimizing the load on the origin server. For example, if an e-commerce platform uses edge computing servers to store images of products, users can see the items almost instantly, improving their experience and potentially boosting sales.
  • Videos: Videos, particularly for streaming services, are stored on edge servers to minimize buffering and load time. Since video files are generally large, storing them at the edge reduces the need to pull data from a central server, which would take longer. Platforms like YouTube or Netflix use edge servers to ensure their content is accessible to users with minimal delays.
  • CSS and JavaScript Files: These files control the styling, layout, and interactivity of web pages. Storing CSS and JavaScript files on edge servers allows browsers to quickly render a page, making it fully interactive sooner. A quick-loading site makes a better first impression, improves SEO, and reduces bounce rates.
  • Fonts and Icons: Web fonts and icon libraries are another static content type cached on edge servers. Popular fonts and icons are frequently reused across pages and even across different websites, so caching them on edge servers makes sense. When these are served locally, page rendering is faster, and there’s less flickering on load as fonts settle.

2. Dynamic Content with Short-Term Caching Rules

While edge servers primarily handle static data, some dynamic content benefits from short-term caching. 

By setting caching rules, dynamic content that doesn’t change frequently or only updates periodically can be cached temporarily.

  • API Responses: APIs that provide frequently requested information (such as stock prices, sports scores, or weather updates) can be cached on edge servers for short periods. This approach means users get a faster response without putting excessive load on the central server. For example, a financial news website could cache stock market API responses on cloud edge servers to provide near-instant data to global users without continuous back-and-forth requests to the main server.
  • User Session Data or Preferences: For applications with user-specific data, edge servers might cache session information briefly to speed up load times. Edge servers can store preferences such as language settings or recently viewed items, making repeat interactions quicker and more personalized.
  • Dynamic Content with Predictable Patterns: Some content updates in predictable patterns, like a news website updating headlines every hour. By caching such content on edge servers and refreshing it as needed, websites can offer up-to-date information with minimal delay.

3. Geographically Targeted Content

One of the core advantages of edge computing servers is the ability to serve location-specific content efficiently. 

Localized content improves user experience by delivering relevant data tailored to a user’s region.

  • Localized Promotions and Deals: E-commerce sites often display location-based discounts and special offers. Caching these promotions on edge servers closest to the user allows quicker updates and ensures users always see the most relevant deals without excessive delays.
  • Regional Content Variants: Streaming services, social media platforms, and global websites might serve region-specific content, like local news or region-licensed media. This type of content caching is especially useful for reducing latency, as users can access content specific to their region from the nearest edge server instead of relying on a faraway data center.
  • Language-Based Content Variants: Sites with multilingual content might store different language versions on edge servers based on regional demand. For instance, a website may serve Spanish content from an edge server near Mexico and English content from one closer to the United States.

4. Security and Access Control Data

Edge servers can handle security-related data, processing requests and managing access control without constantly querying the origin server. 

This approach reduces load, improves security, and offers quicker user authentication.

  • Access Control and User Authentication Data: Edge servers can store data for verifying user credentials or session tokens. By handling these authentication processes locally, edge servers help reduce the number of queries to the origin server, speeding up secure access to content.
  • SSL/TLS Certificates: To establish a secure HTTPS connection, edge servers manage SSL/TLS certificates. These certificates allow secure connections without requiring round trips to the origin server for each verification, providing quicker, secure access for users.
  • Firewall Rules and Security Policies: Some edge computing architectures allow for the enforcement of firewall rules directly on edge servers, filtering out malicious traffic before it even reaches the central server. This setup not only helps with data security but also reduces unwanted load on the origin servers.

5. Progressive Web Apps (PWAs) and Caching for App-Like Experiences

Progressive Web Apps (PWAs) and Single-Page Applications (SPAs) are designed to deliver a more app-like experience, and edge servers play a critical role in caching assets that make these experiences fast and smooth.

  • App Shell Architecture: PWAs often use an “app shell” model, where the basic UI framework is loaded once, and dynamic data is filled in as needed. The app shell, containing the essential layout and UI elements, can be cached on edge servers. This means users experience an almost instant load for the app shell while specific data loads in as required.
  • Offline Access and Content Availability: Edge servers support offline caching by storing essential parts of the PWA that users can access even without an internet connection. This can include previously viewed pages or app sections, ensuring uninterrupted access to key content.