News for hackers. Stuff that matters.
Re:Google Fonts Analytics by btown on Wednesday February 19, 2020 @02:46PM (#22369281)
Practically there's no difference between a browser that lazily downloads builtin fonts, and a global URL for a font file across websites with an extremely long TTL. And you don't want the browsers to be even more bloated than they already are!
Re:Google Fonts Analytics by gioele on Wednesday February 19, 2020 @03:16PM (#22369585)
> font file across websites with an extremely long TTL.

Caches are no longer shared across domains because doing so leads to privacy leaks: https://www.jefftk.com/p/shared-cache-is-going-away

Re:Google Fonts Analytics by sp332 on Wednesday February 19, 2020 @03:25PM (#22369681)
-
Re:Google Fonts Analytics by anamexis on Wednesday February 19, 2020 @03:43PM (#22369845)
The parent comment's point is that this cache is partitioned by frame origin (which the link details).
Re:Google Fonts Analytics by hinkley on Wednesday February 19, 2020 @02:55PM (#22369372)
Then why are there 36 trillion requests?
Re:Google Fonts Analytics by r0bbbo on Wednesday February 19, 2020 @03:03PM (#22369463)
A lot of people using a lot of fonts from a lot of different browsers. I'm sure the caching techniques aren't perfect but they're probably quite good.
Re:Google Fonts Analytics by hinkley on Wednesday February 19, 2020 @03:22PM (#22369645)
It's been a while now, but at one point there were some numbers that came in that showed that a much higher fraction of user agents arrive at a web site with a completely empty cache [than you might expect].

Enough so that if you rely on caching for user experience, your average user is not going to have a good time.

Re:Google Fonts Analytics by BiteCode_dev on Wednesday February 19, 2020 @04:28PM (#22370288)
There is a HUGE difference:

- not all sites use CDN, even if using the same font

- not all sites use the same CDN

- users clear the cache (clearing history does that on firefox)

- incognito mode is a thing

- first load matters a lot

- browser have a limit of the disk space they use for cache, and they evict older entries when they reach it. Given sites are now bloated, this fills up fast.

- this repeats for each browser. I have 5 on my laptop, 3 on my mobile, 2 on my tablet.