Skip to content

Commit 8fa6930

Browse files
lidelSgtPooki
andauthored
chore: apply suggestions from code review
Co-authored-by: Russell Dempsey <[email protected]>
1 parent c65b7e0 commit 8fa6930

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/how-to/detect-ipfs-on-web.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ The goal of this page is to provide some suggestions and best practices for web
66

77
## Detecting content-addressed resources
88

9-
In many cases IPFS resource can be detected just by looking at URI, especially if it is a HTTP URL pointing at a public gateway. This allows browser to upgrade transport protocol to IPFS, and removed the need for sending HTTP request to a remote server.
9+
In many cases IPFS resources can be detected just by looking at the URI, especially if it is an HTTP URL pointing at a public gateway. This allows a browser to upgrade the transport protocol to IPFS, and remove the need for sending an HTTP request to a remote server.
1010

1111
The high level heuristic is to check, in order:
1212
- Does the `URL` follow [path or subdomain gateway](/how-to/address-ipfs-on-web/) convention?
1313
- If not, does [DNSLink](/concepts/dnslink/) with an IPFS path exist for `URL.hostname`?
1414

15-
If any of the above is true, an user agent should be able to find a content path that can be used for data retrieval over IPFS. See the illustration below.
15+
If any of the above is true, a user agent should be able to find a content path that can be used for data retrieval over IPFS. See the illustration below.
1616

1717
```mermaid
1818
flowchart TD

0 commit comments

Comments
 (0)