Re: Two new HTTP caching specifications

On Sun, Jun 25, 2023, at 14:48, Mark Nottingham wrote:
> - An HTTP Cache Invalidation API 
> <https://datatracker.ietf.org/doc/draft-nottingham-http-invalidation/>

Is there any reason you can only use one type of selector in a request?

{
    "type": "uri",
    "selectors": [
      "https://example.com/foo/bar",
      "https://example.com/foo/bar/baz"
    ]
}

Would this be better?

{
    "uri": [
      "https://example.com/foo/bar",
      "https://example.com/foo/bar/baz"
    ],
    "uri-prefix": [
      "https://example.com/bar",
    ],
}

Received on Monday, 26 June 2023 00:57:15 UTC