Skip to content
Latchkey

What Is HTTP 308 Permanent Redirect?

HTTP 308 Permanent Redirect explained, and what it means when you see it in CI/CD and deployments.

HTTP 308 is a permanent redirect that preserves the HTTP method and body.

What it means

A 308 is the method-preserving counterpart of 301. It tells clients to use the new URL permanently while keeping POST as POST.

When you see it in CI/CD

CI deploy scripts hitting an API that has permanently moved get the method preserved with a 308, avoiding the GET-downgrade pitfall of 301.

Key takeaways

  • 308 is a permanent redirect.
  • It preserves the method.
  • Method-safe version of 301.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →