Opened 11 years ago
Closed 11 years ago
#292 closed design (fixed)
Pragma
| Reported by: | mnot@… | Owned by: | draft-ietf-httpbis-p6-cache@… |
|---|---|---|---|
| Priority: | normal | Milestone: | 15 |
| Component: | p6-cache | Severity: | Active WG Document |
| Keywords: | Cc: |
Description
Pragma's definition is much more detailed about its purpose than necessary, considering that it's deprecated. Should be rewritten to reflect how it's actually used. The relationship to Cache-Control also needs to be clarified.
Change History (5)
comment:1 Changed 11 years ago by mnot@…
comment:2 Changed 11 years ago by mnot@…
comment:3 Changed 11 years ago by mnot@…
- Milestone changed from unassigned to 15
- Resolution set to incorporated
- Status changed from new to closed
comment:4 Changed 11 years ago by mnot@…
- Resolution incorporated deleted
- Status changed from closed to reopened
comment:5 Changed 11 years ago by mnot@…
- Resolution set to fixed
- Status changed from reopened to closed
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](https://www.ietf.org/images/ietflogotrans.gif)
Proposal:
3.4. Pragma
The "Pragma" header field allows backwards compatibility with HTTP/1.0 caches, so that clients can specify a "no-cache" request that they will understand (as Cache-Control was not defined until HTTP/1.1). When the Cache-Control header is also present and understood in a request, Pragma is ignored.
In HTTP/1.0, Pragma was defined as an extensible field for implementation-specified directives for recipients. This specification deprecates such extensions to improve interoperability.
When the Cache-Control header is not present in a request, the no-cache request pragma-directive MUST have the same effect on caches as if "Cache-Control: no-cache" were present.
When sending a no-cache request, a client SHOULD include both pragma and cache-control directives unless Cache-Control: no-cache is purposefully omitted to target other Cache-Control response directives at HTTP/1.1 caches. For example:
GET / HTTP/1.1 Host: www.example.com Cache-Control: max-age=30 Pragma: no-cache
will constrain HTTP/1.1 caches to serve a response no older than 30 seconds, while precluding implementations that do not understand Cache-Control from serving a cached response.
Note: Because the meaning of "Pragma: no-cache" in responses is not specified, it does not provide a reliable replacement for "Cache-Control: no-cache" in them.