← Graph

Use 302 not 301 for region redirects

takeaway 1 connections

When redirecting users from a region-agnostic URL to a region-specific URL on a load balancer, Apply4 originally used HTTP 301 but found that Chrome cached the response too aggressively, breaking subsequent redirects. They switched to 302 — semantically imperfect but it worked in practice.

type
lesson-learned
takeaway Use 302 not 301 for region redirects
from_talk
Apply4 had to switch from 301 to 302 because Chrome cached 301s too aggressively.

Provenance

Read by
1 extraction