My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Cache/CDN Font - Does Chrome Know?

Brian Jackson's photo
Brian Jackson
·Sep 1, 2017

This is for you webperf guys out there... actually have a question regarding caching + fonts + CDN.

Let says I have 3 domains. The first 2 both are calling Google fonts CDN to load Roboto font.

Domain 1 (using Roboto on Google Fonts CDN) CWB0XYA8bzo0kSThX0UTuA.woff2

Domain 2 (using Roboto on Google Fonts CDN) CWB0XYA8bzo0kSThX0UTuA.woff2

The third domain is hosting Roboto with it's third-party CDN provider.

Domain 3 (using Roboto on third-party CDN) roboto-v16-latin-regular.woff2

From Google CDN for 2 different sites the cached Roboto file is CWB0XYA8bzo0kSThX0UTuA.woff2 (which means it is most likely already cached for others in their browser because they got it from another site already).

For the third-party CDN the cached file for Roboto is roboto-v16-latin-regular.woff2. Does Chrome for example have a way to determine that this is the same Roboto font. Is it stored in a hash?

In other words, would a first time user that has a Roboto font already cached from Google CDN still have to download Roboto from your CDN? Hopefully that makes sense :)