Closed bjfletcher closed 6 years ago
I'd like clarification on why 3 out of 4 fonts are in appcache, with the 1 other font in sw, in https://github.com/Financial-Times/n-service-worker/blob/master/config/precache.js
Do you know why, @wheresrhys, @leggsimon or @tavvy?
Good question. In addition all fonts should be at v1.3.2
Having dug through history, it was me https://github.com/Financial-Times/n-service-worker/pull/74
During the offline experiment in the autumn metric bold was added to the offline page. At the time it was only used on the offline pages, so I wanted to keep it clear from the appcache, which should only have an effect on iOS, which doesn't support sw & offline
Since then, metric bold is more widely used on the site. We agreed with design that it should only be used in article toppers for rich journalism. I'm not sure if they've stuck to that agreement though.
To be honest, I'm not convinced we should be precaching that font at all
the old code was generating this:
when really we want:
which this PR will do