Skip to content

Commit

Permalink
Explcitly state that "public" allows responses with Authentication to…
Browse files Browse the repository at this point in the history
… be stored

In httpwg#161, the suggestion was made to explicitly note when a directive
allows the response to be cached, even with Authorization being used.

According to section `caching.authenticated.responses`, `public` also
has this effect, so I added a note there.

Additionally, in `cache-response-directive.s-maxage`, I tried to
make it clearer that `s-maxage` overrides Authorization as well,
due to the implication of proxy-revalidate and thus must-revalidate.
  • Loading branch information
mpdude committed Dec 3, 2019
1 parent a004739 commit e3c7ec2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
28 changes: 16 additions & 12 deletions draft-ietf-httpbis-cache-latest.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions draft-ietf-httpbis-cache-latest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,11 @@
due to their status codes not being defined as heuristically cacheable; see
<xref target="heuristic.freshness"/>.)
</t>
<t>
The "public" directive also has the effect of allowing a stored
response to be used to satisfy a request with an Authorization header
field; see <xref target="caching.authenticated.responses"/>.
</t>
</section>

<section title="private" anchor="cache-response-directive.private">
Expand Down Expand Up @@ -1679,11 +1684,11 @@
The "s-maxage" response directive indicates that, in shared caches, the
maximum age specified by this directive overrides the maximum age
specified by either the max-age directive or the <x:ref>Expires</x:ref>
header field. The s-maxage directive also implies the semantics of the
proxy-revalidate response directive.
header field.
</t>
<t>
The s-maxage directive also has the effect of allowing a stored
The "s-maxage" directive also implies the semantics of the
"proxy-revalidate" directive. Consequently, it allows a stored
response to be used to satisfy a request with an Authorization header
field; see <xref target="caching.authenticated.responses"/>.
</t>
Expand Down

0 comments on commit e3c7ec2

Please sign in to comment.