Name
Pragma: no-cache
Synopsis
The
Pragma header specifies
directives for proxy and gateway systems. Since many proxy systems
may exist between a client and server, Pragma
headers must pass through each proxy. When the
Pragma header reaches the server, the header may
be ignored by the server software.
The only directive defined in HTTP/1.0 is the
no-cache directive. It is used to tell caching
proxies to contact the server for the requested document, instead of
using its local cache. This allows the client to request the most
up-to-date document from the original web server, without receiving a
cached copy from an intermediate proxy server.
The Pragma header is an HTTP 1.0 feature, and is
maintained in HTTP 1.1 for backward compatibility. No new
Pragma directives will be defined in the future.
Example:
Pragma: no-cache
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access