Web Proxy / Caching Fundamentals Series

⚡ Understanding the Rise of HTTPS and the End of Proxy Caching from a "Top 1%" Perspective — How It Relates to Browser Caching and CDNs

Introduction

This article is part of the Top 1% Series’ full article guide, and the second article in the Web Proxy / Caching Fundamentals Series. It assumes you understand a proxy’s basic role from Understanding When to Use a Proxy vs. a Firewall from a “Top 1%” Perspective.

Prerequisites

Getting the Big Picture

Three Caching Layers

Web content caching has three representative layers, differing in “for whom” and “where” the cache is held.

graph LR
    subgraph Cdn["CDN edge caching"]
        CdnDesc["Contracted by the content provider,<br/>distributed worldwide (shared by many users)"]
    end
    subgraph Proxy["Proxy caching"]
        ProxyDesc["Deployed by the consumer side (a company, and so on),<br/>shared by multiple users within the organization"]
    end
    subgraph Browser["Browser caching"]
        BrowserDesc["Saved on an individual device,<br/>exclusive to that user"]
    end
    Internet["Internet"] --> Cdn --> Proxy --> Browser

The core of this article is that, of these three, only “proxy caching” has effectively stopped functioning due to the rise of HTTPS.

Fundamentals, Explained Thoroughly

How Proxy Caching Worked in the First Place

Back in the era of HTTP (unencrypted communication), a proxy could read the content of a passing HTTP response as-is (the URL, response body, Cache-Control header, and so on). This let it, for example, when multiple employees within a company each accessed the same popular external website, save the content it retrieved when the first person accessed it, and serve subsequent requests from that cache. This mechanism is based on the idea of sharing one cache among many users within an organization.

sequenceDiagram
    participant UserA as Employee A
    participant Proxy as Proxy (shared cache)
    participant Server as External web server

    UserA->>Proxy: Request to Site X
    Proxy->>Server: Relays the request
    Server-->>Proxy: Response (the proxy saves it as a cache)
    Proxy-->>UserA: Returns the response
    Note over Proxy: A different employee, B, requests the same Site X
    Proxy-->>Proxy: Returns the cached response as-is (no external communication occurs)

Why This Mechanism Stopped Working With the Rise of HTTPS

With HTTPS, the entire communication between client and server is encrypted. In a typical proxy configuration that doesn’t perform SSL inspection, covered in Understanding When to Use a Proxy vs. a Firewall from a “Top 1%” Perspective, the proxy can’t read the content of this encrypted communication at all. All the proxy sees is a relay of an opaque, encrypted byte stream — it can’t even determine whether that response is cacheable, or which URL it’s a response to in the first place. (SNI reveals the destination hostname, but the path and response body remain invisible.)

As a result, a proxy’s traditional role of sharing content among multiple users has effectively stopped functioning for HTTPS traffic. SSL inspection could technically make caching possible again, but since it requires decrypting the traffic, it isn’t a common practice due to privacy and processing-cost concerns. Given that the vast majority of internet traffic today is HTTPS, the understanding that “a proxy’s role as a cache has all but disappeared” accurately reflects the current state of things.

Why the Browser Cache Isn’t Affected by This Shift

Here’s a crucial distinction: a browser’s cache is a different layer from a proxy cache, and it’s unaffected by the shift to HTTPS. Because the browser itself is the endpoint terminating (decrypting) the HTTPS connection, it can read the content of the response returned from the server in its plaintext state, after decryption. So it continues to interpret the Cache-Control header and save that content as a cache on local disk exactly as before — unchanged by HTTPS.

The accurate way to frame it is: “HTTPS adoption didn’t destroy the caching mechanism itself — it neutralized only the specific form of caching shared among multiple users (proxy caching), without affecting the browser cache, which is self-contained on an individual device.”

Cache typeEffect of HTTPS adoptionReason
Proxy cache (shared)Has effectively stopped functioningThe proxy can’t read the content of encrypted traffic
Browser cache (individual)UnaffectedThe browser itself terminates the encryption and can handle the plaintext content

How CDNs (Content Delivery Networks) Fit In

Here, a key perspective is that the end of proxy caching and the rise of CDNs are two sides of the same coin. A CDN is a mechanism where the content provider itself (the website operator) contracts for the service and pre-caches its own content onto edge servers distributed geographically around the world.

A CDN can cache and deliver content just fine in an HTTPS environment because the content provider itself is the entity managing that content and the TLS certificate. A proxy is deployed by “the consumer side,” trying to relay someone else’s (a server’s) encrypted content from the outside — which is why HTTPS adoption broke its ability to cache. A CDN, on the other hand, has “the provider side” itself, as the content’s manager, handle the legitimate TLS termination, so being HTTPS poses no technical obstacle.

graph TB
    subgraph Before["The HTTP era"]
        B1["A proxy (consumer side) shares<br/>a cache across multiple users"]
    end
    subgraph After["After HTTPS became widespread"]
        A1["Shared caching via proxy stops functioning"]
        A2["A CDN (provider side) takes over,<br/>speeding things up via geographically distributed caching instead"]
    end
    Before -.a historical handoff of roles.-> After

In other words, it’s cleanest to understand this whole shift as a historical transition where the role of speeding things up and saving bandwidth via caching — once carried by “a shared cache built by the consumer side” (a proxy) — got handed off to “a shared cache built by the provider side” (a CDN), across the boundary marked by the rise of HTTPS.

The View From the Top 1% Perspective

Today’s Primary Purpose for Deploying a Proxy Is Security, Not Caching

Given the shift described above, it’s more accurate to understand that the main reason modern organizations deploy a proxy has shifted away from caching for bandwidth savings, toward security purposes — URL filtering, malware inspection, access control — as covered in Understanding When to Use a Proxy vs. a Firewall from a “Top 1%” Perspective. When considering whether to deploy a proxy, expecting “bandwidth savings via caching” as a major benefit isn’t realistic given today’s traffic landscape.

How CDN Cache Control Works

A CDN leverages the Cache-Control header and ETag (a value identifying a content version), while also offering its own cache key mechanism (a configuration that treats a combination of specific headers or query parameters, in addition to the URL, as the unit of caching). For dynamic content whose response differs per user even for the same URL, a mistake in cache key design carries the serious risk that content meant for one user could accidentally be delivered to a different user — a scenario requiring careful design.

Common Misconceptions and Pitfalls

The Troubleshooting Perspective

For caching-related issues, the basic approach is to isolate which layer (proxy, browser, or CDN) the problem concerns.

  1. A proxy’s cache hit rate is lower than expected: Check whether the traffic in question is HTTPS. If it is, caching simply doesn’t function at all unless SSL inspection is performed.
  2. A website was updated, but the browser keeps showing old content: Check the Cache-Control header’s configuration and the browser’s own cache (a forced reload can help isolate this temporarily).
  3. Content updated via a CDN isn’t reflected: A cache purge (forcing a re-fetch) on the CDN side may be needed.
  4. Dynamic content meant for one user got shown to a different user: Urgently check for a flaw in the CDN’s cache key design.

Preventive Measures and Permanent Fixes

Summary

What to Keep in Mind From Today

  1. When you encounter the phrase “a proxy’s role as a cache,” remember it mostly refers to the era of HTTP, and doesn’t hold up well in an HTTPS environment.
  2. When you run into a caching-related issue, first isolate which layer — proxy, browser, or CDN — it concerns.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).