Pragma

Caches predating Cache-Control need a way to receive no-cache instructions. The Pragma request header is a legacy HTTP/1.0 caching directive retained for this backward compatibility. The specification defines Pragma for requests only, and its behavior in responses was never specified.

Usage

The Pragma header carries the no-cache directive, which is semantically equivalent to Cache-Control: no-cache. When a Cache-Control header is present, the Pragma value is ignored.

The header originated in HTTP/1.0, which had no Cache-Control mechanism. HTTP/1.1 introduced Cache-Control as the replacement, making Pragma obsolete for all practical purposes. Servers and proxies still include Pragma as a defense-in-depth measure to ensure older Caching layers honor the no-cache intent.

The specification defines Pragma solely for backward compatibility. New implementations rely on Cache-Control instead.

Deprecated

Pragma is deprecated and marked as such in the IANA HTTP Field Name Registry. Cache-Control provides the same behavior and more. Include Pragma only when communicating with legacy caches.

Directives

no-cache

The no-cache directive instructs caches to revalidate the response with the origin before serving a stored copy. The behavior matches Cache-Control: no-cache.

Pragma: no-cache

Example

A request including both Pragma and Cache-Control to guarantee compatibility across HTTP/1.0 and HTTP/1.1 intermediaries. Modern caches use the Cache-Control value and ignore Pragma.

Cache-Control: no-cache
Pragma: no-cache

A standalone Pragma directive in a request targeting an older proxy server lacking Cache-Control support.

Pragma: no-cache

Note

Akamai extends Pragma with vendor-specific directives like akamai-x-cache-on, akamai-x-get-cache-key, and akamai-x-get-true-cache-key. Including these directives in a request triggers debug headers in the Akamai response revealing cache status, cache keys, and edge server details. These Akamai-specific directives are not part of the HTTP specification and only function on Akamai CDN infrastructure.

See also

Last updated: April 4, 2026