4 ms·
> They do provide proper cache headers. They cache the CSS for 1 day. The actual font files are cached for a lot longer than that. I don't see it, not with cur
by xaduha 10y ago
> They do provide proper cache headers. They cache the CSS for 1 day. The actual font files are cached for a lot longer than that.
I don't see it, not with curl at least.
Looks like actual fonts are cached for a year.
But not CSS,
> curl https://fonts.googleapis.com/css?family=Open+Sans https://fonts.googleapis.com/css?family=Open+Sans -i
expires:Tue, 14 Jun 2016 19:02:03 GMT
date:Tue, 14 Jun 2016 19:02:03 GMT
At the very least they should allow to control that with another query parameter.
- row1an 10y agoExpires is a HTTP/1.0 header, Cache-Control is HTTP/1.1 and used by anything created in the last 10-15 years. Most sites set the Expires header similar to their Cache-Control max-age, but I guess Google just doesn't care and it doesn't really matter anyway.