A
A
Alexey Strukov2016-01-18 22:25:50
JavaScript
Alexey Strukov, 2016-01-18 22:25:50

How does loading jQuery via CDN work?

I'm testing the functionality of Chrome Developer Tools
Connected jQuery via CDN and watch the file download in the Network panel
I can't understand the logic of the CDN, which, when the cache is cleared, gives this:
6d9f168102b142b19c149a993a977c79.png
and with caching enabled, this:
59db5eaec60f4522bed3bf2b9414b764.png
What does it turn out to be?
You go, you go to school, and then bam - and with the library in the cache, we still spend 100 milliseconds accessing the server?
PS
Parallel question. I understand correctly that these numbers below mean the size of the downloaded gzip archive (top) and its unzipped size (bottom)?:
a17174c6a2404b88b981e61dbef22c6d.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Lebedev, 2016-01-19
@swanrnd

When checking caching, do not press F5, but ENTER in the address bar, then the request will not be sent.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question