Skip to content

Consider maximum route size #5

Closed
@sisidovski

Description

Derived from whatwg/urlpattern#18.

For using URLPattern as an input of the static routing API, it makes sense to have a limit to the route size, as the router evaluation is on the critical path, and it can create resource considerations. whatwg/urlpattern#182 will include some common constraints in the future, so the static routing API should follow that.

This is more specific in the static routing API, we may have to consider the limit to the number of match rules that can be registered. Currently the API allows multiple rules but the maximum size is not defined. This would bring similar considerations to browsers.

This should be considered eventually in the ServiceWorker spec level, that will be ideal if we have the mention in w3c/ServiceWorker#1686.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions