Skip to content

[Uri] Uri caches DnsSafeHost rather than IdnHost #35676

@stephentoub

Description

@stephentoub

Uri currently caches DnsSafeHost but not IdnHost. However, accordingly to docs:

IdnHost is provided as the preferred alternative to using DnsSafeHost, because IdnHost is guaranteed to always be DNS safe, no matter what the current app.config settings might be.

Would it make sense to cache IdnHost instead, if that's what we recommend developers use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.NetenhancementProduct code improvement that does NOT require public API changes/additionstenet-performancePerformance related issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions