Function

is-request-cacheable

Determines whether a request is cacheable per conservative RFC 9111 semantics.

In particular, this function checks whether the request method is GET or HEAD, and considers requests with other methods uncacheable. Applications where it is safe to cache responses to other methods should consider using their own cacheability check instead of this function.

is-request-cacheable: func(request: borrow​<request>) -> result​<bool, error>;