You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/docs/_blog/_posts/2024-07-17-On Cdns.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,26 @@ title: On CDNs
4
4
5
5
One of the objects which seems to crop up rather often when discussing this idea, is that
6
6
7
-
> My users are now dependant on a CDN!
7
+
> My users are now dependent on a CDN!
8
8
9
-
This is true, although my invesigtaion makes this appear way less scary then it first looks. In fact on balance I've developed a strong preference for them...
9
+
This is true, although my investigation makes this appear way less scary then it first looks. In fact on balance I've developed a strong preference for them...
10
10
11
-
The reliability concern is dealt with in two ways. Firstly according to jsdelivr [status](https://status.jsdelivr.com), it's uptime was 100% in 2023. So, that's not too bad.
11
+
The reliability concern is dealt with in two ways. Firstly according to jsdelivr [status](https://status.jsdelivr.com), its uptime was 100% in 2023. So, that's not too bad.
12
12
13
-
And if you specifiy the explicit dependance of the module you are using... actually, it gets waaaay better ... because when the CDN responds to an explicitly versioned request, it includes a bunch of headers which say "This artifact is immutable. Don't bother me about this again. Ever".
13
+
And if you specify the explicit dependence of the module you are using... actually, it gets waaaay better ... because when the CDN responds to an explicitly versioned request, it includes a bunch of headers which say "This artifact is immutable. Don't bother me about this again. Ever".
14
14
15
-
And the browser wqill respect that - next time you go ask for your dependancy, it simply loads it out of it's cache. There _is no network request_. Dependancy load time: 0ms, according to the browser network tools.
15
+
And the browser will respect that - next time you go ask for your dependency, it simply loads it out of its cache. There _is no network request_. Dependency load time: 0ms, according to the browser network tools.
16
16
17
-
It's tought to get faster than 0. Also, no request means no netork risk.
17
+
It's tought to get faster than 0. Also, no request means no network risk.
18
18
19
19
So, under "ideal" conditions:
20
20
21
21
- You are using a modern browser
22
22
- You are making the request for a second+ time
23
-
- You have explicitly specified the version of the dependancies you're using
23
+
- You have explicitly specified the version of the dependencies you're using
24
24
25
-
Dependancy resolution is both very reliable and very fast. What's cool - that cache survives redeployment. So your app is slow for the user the first time... but the cache survives a redeployment. It's fast afterwards. We can reword the statment as follows;
25
+
Dependency resolution is both very reliable and very fast. What's cool - that cache survives redeployment. So your app is slow for the user the first time... but the cache survives a redeployment. It's fast afterwards. We can reword the statement as follows;
26
26
27
-
> My users are now dependant on a CDN being available the first time they visit my site.
27
+
> My users are now dependent on a CDN being available the first time they visit my site.
0 commit comments