-
Notifications
You must be signed in to change notification settings - Fork 22.5k
/
index.md
69 lines (53 loc) · 1.68 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
title: Pragma
slug: Web/HTTP/Headers/Pragma
page-type: http-header
status:
- deprecated
browser-compat: http.headers.Pragma
---
{{HTTPSidebar}}{{Deprecated_Header}}
The HTTP **`Pragma`** header is an implementation-specific header that may have various effects along the request-response chain.
This header serves for backwards compatibility with HTTP/1.0 caches that do not support the {{HTTPHeader("Cache-Control")}} HTTP/1.1 header.
> [!NOTE]
> The `Pragma` header is not specified for HTTP responses and is therefore not a reliable replacement for the HTTP/1.1 `Cache-Control` header, although its behavior is the same as `Cache-Control: no-cache` if the `Cache-Control` header field is omitted in a request.
> Use `Pragma` only for backwards compatibility with HTTP/1.0 clients.
<table class="properties">
<tbody>
<tr>
<th scope="row">Header type</th>
<td>
{{Glossary("Request header")}},
{{Glossary("Response header")}} (response behavior is not specified and is implementation-specific).
</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name")}}</th>
<td>No</td>
</tr>
<tr>
<th scope="row">
{{Glossary("CORS-safelisted response header")}}
</th>
<td>Yes</td>
</tr>
</tbody>
</table>
## Syntax
```http
Pragma: no-cache
```
## Directives
- `no-cache`
- : Same as `Cache-Control: no-cache`. Forces caches to submit the request to the origin server for validation before a cached copy is released.
## Examples
```http
Pragma: no-cache
```
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}
## See also
- {{HTTPHeader("Cache-Control")}}
- {{HTTPHeader("Expires")}}