Skip to content

Commit

Permalink
add sourcecode types
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Oct 26, 2020
1 parent 419a3ec commit 5349b23
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions draft-ietf-httpbis-cache-header.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ This parameter is useful to distinguish cases when the next hop server sends a 3

For example:

~~~ example
~~~ http-sf-list
Cache-Status: ExampleCache; hit; detail=MEMORY
~~~

Expand All @@ -167,49 +167,49 @@ This parameter is intentionally limited. If an implementation needs to convey ad

The most minimal cache hit:

~~~ example
~~~ http-sf-list
Cache-Status: ExampleCache; hit
~~~

... but a polite cache will give some more information, e.g.:

~~~ example
~~~ http-sf-list
Cache-Status: ExampleCache; hit; ttl=376
~~~

A stale hit just has negative freshness:

~~~ example
~~~ http-sf-list
Cache-Status: ExampleCache; hit; ttl=-412
~~~

Whereas a complete miss is:

~~~ example
~~~ http-sf-list
Cache-Status: ExampleCache; fwd=uri-miss
~~~

A miss that successfully validated on the back-end server:

~~~ example
~~~ http-sf-list
Cache-Status: ExampleCache; fwd=stale; fwd-status=304
~~~

A miss that was collapsed with another request:

~~~ example
~~~ http-sf-list
Cache-Status: ExampleCache; fwd=uri-miss; collapsed
~~~

A miss that the cache attempted to collapse, but couldn't:

~~~example
~~~ http-sf-list
Cache-Status: ExampleCache; fwd=uri-miss; collapsed=?0
~~~

Going through two layers of caching, both of which were hits, and the second collapsed with other requests:

~~~example
~~~ http-sf-list
Cache-Status: OriginCache; hit; ttl=1100; collapsed,
"CDN Company Here"; hit; ttl=545
~~~
Expand Down

0 comments on commit 5349b23

Please sign in to comment.