lycheeverse / lychee

⚡ Fast, async, stream-based link checker written in Rust. Finds broken URLs and mail addresses inside Markdown, HTML, reStructuredText, websites and more!
https://lychee.cli.rs
Apache License 2.0
2.22k stars 134 forks source link

`dns-prefetch` links should be excluded #1499

Closed wackget closed 1 month ago

wackget commented 2 months ago

Links of type dns-prefetch should not be checked by lychee. This is because they are only used to perform DNS lookups and never to fetch any content, e.g.:

<link rel='dns-prefetch' href='https://fonts.googleapis.com/' />

I am aware of an existing issue #897 which covers preconnect-type links but dns-prefetch is a separate type not covered by the proposed fix.