Skip to content

Commit

Permalink
Clarify that push-resource contains an absolute URI
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed Dec 1, 2024
1 parent 3418b5f commit 4fd0b7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions content.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Expires: Wed, 02 Oct 2024 07:28:00 GMT

## Subscription Updates

Every subscription has an identifier that uniquely identifies the (push transport, push service, client) triple. For Web Push, the identifier is the push resource URL.
Every subscription has an identifier that uniquely identifies the (push transport, push service, client) triple. For Web Push, the identifier is the push resource URI.

A server MUST NOT register a subscription with the same identifier multiple times. Instead, when a client wants to register a subscription with an identifier that is already registered for the requested collection, the server MUST update the subscription with the given details and the expiration date.

Expand Down Expand Up @@ -372,7 +372,7 @@ To register a Web Push subscription, the `subscription` element of the `push-reg

The `web-push-subscription` element represents the public information of a Web Push subscription that is shared with the WebDAV-Push server (Web Push application server).

It contains exactly one `push-resource` element, which identifies the endpoint where Web Push notifications are sent to. The push resource is used as the unique identifier for the subscription.
It contains exactly one `push-resource` element, which contains an absolute URI that identifies the endpoint where Web Push notifications are sent to. The push resource is used as the unique identifier for the subscription.

Example:

Expand Down
2 changes: 1 addition & 1 deletion xml/webdav-push.rng
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<define name="web-push-subscription">
<element name="web-push-subscription">
<element name="push-resource">
<text/> <!-- push resource (URL) -->
<text/> <!-- push resource (absolute URI) -->
</element>

<!-- message encryption -->
Expand Down

0 comments on commit 4fd0b7c

Please sign in to comment.