Back to HTTP Headers
Both

HTTP Pragma Header

HTTP/1.0 header for implementation-specific directives. Mostly replaced by Cache-Control in HTTP/1.1. The most common usage is Pragma: no-cache.

Purpose

Backward-compatible way to request that caches not serve a cached response. Superseded by Cache-Control in modern HTTP.

Pragma: no-cache Note: Prefer Cache-Control: no-cache for HTTP/1.1+

Code Examples

See how to use the Pragma header in different tools and languages.

curl -H "Pragma: no-cache" https://api.example.com/resource
# For backward compatibility with HTTP/1.0 proxies

Related Headers

Test Your APIs

pragma headerhttp pragmahttp headers guide