Thijs Feryn

HTTP headers that make your website go faster

Imagine serving content instantly while fetching a fresh version in the background. Discover how modern caching headers can eliminate wait times for your users.

HTTP headers that make your website go faster
#1about 5 minutes

Why reverse caching proxies are essential for performance

A reverse caching proxy sits between users and your origin server to protect it from overload and accelerate content delivery.

#2about 5 minutes

Understanding the basic Cache-Control header directives

The Cache-Control header uses directives like public, private, and max-age to define caching scope and duration for browsers and shared caches.

#3about 2 minutes

Using s-maxage to set different cache durations

The s-maxage directive allows you to set a specific time-to-live (TTL) for shared caches, which overrides the general max-age directive.

#4about 5 minutes

Optimizing revalidation with conditional requests

Use ETag and Last-Modified headers to enable conditional requests, allowing servers to respond with a 304 Not Modified to save bandwidth and resources.

#5about 3 minutes

Improving resilience by serving stale content

The stale-while-revalidate and stale-if-error directives allow caches to serve stale content while revalidating in the background or during origin failures.

#6about 3 minutes

Controlling strictness and preventing caching

Use directives like must-revalidate, no-cache, and no-store to enforce strict content freshness or prevent caching altogether for sensitive data.

#7about 2 minutes

Using the Vary header for content negotiation

The Vary header instructs caches to store different versions of a resource based on request headers like Accept-Language, enabling content negotiation.

#8about 2 minutes

Controlling multi-tier caches with surrogate headers

Surrogate-Control and Surrogate-Capability headers provide granular control over multi-tier caches and enable advanced edge computing features.

#9about 3 minutes

Composing pages at the edge with Edge Side Includes

Edge Side Includes (ESI) allow you to assemble web pages from different fragments at the cache layer, each with its own caching policy.

Related jobs
Jobs that call for the skills explored in this talk.

job ad

Saby Company
Delebio, Italy

Intermediate

d

Saby Company
Delebio, Italy

Junior

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
All the videos of Halfstack London 2024!
Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
All the videos of Halfstack London 2024!
CH
Chris Heilmann
Dev Digest 139 - Soft and hard queries
News and ArticlesLet's start with Amelia Wattenberger's excellent essay Bridging the hard and the soft talking about humans and data. Do you sometimes also miss aspects of the early web like a lack of big data and freedom to create without numeric go...
Dev Digest 139 - Soft and hard queries
CH
Chris Heilmann
Dev Digest 116 - WWWAI?
This time, learn how to un-AI Google's search results, what's new on the web, avoid a new security hole and go back to BASICS with us. News and ArticlesWhat a week. Google, Microsoft, OpenAI and many others had their big flagship events announcing th...
Dev Digest 116 - WWWAI?

From learning to earning

Jobs that call for the skills explored in this talk.