elmzteam / downtothewire

Down to the Wire
https://dttw.tech/
3 stars 3 forks source link

Refactorings #124

Open el1t opened 7 years ago

el1t commented 7 years ago

I don't think this is how pull requests work

el1t commented 7 years ago

Regarding combining the font requests: the CSS file is only cached for 1 day, while the font is cached for a year. Combining them in theory reduces cache hits, but the lifetime is so short it probably doesn't matter.

zwade commented 7 years ago

Interesting, how do you get those numbers?

el1t commented 7 years ago

From here:

Requests for CSS assets are cached for 1 day. ... The font files themselves are cached for one year, which cumulatively has the effect of making the entire web faster: When millions of websites all link to the same fonts, they are cached after visiting the first website and appear instantly on all other subsequently visited sites.