For as much as I know about PWAs and listened to talks about Service Workers, I haven't actually used them much (at all) beyond reading lots of documentation.
But with Google Fonts, they update the font all the time, and you could save anything from
fonts.gstatic.com but that seems a little wasteful. Is there a better way?
Top comments (5)
Do you need the latest update? How much could a single font change from day-to-day?
No more inefficient than the browser cache itself right?
Yeah, I guess I was just worried about how long it might save the woff files, which would cause my app to have a lot of data cached because I don't know the policy on how long a file has to go unused for a browser to delete it.
Thanks for the response :)
If I got your thought, this policy is simply an HTTP header. Look at
haha, would you look at that? totally forgot about
Glad if it helps! NP :-)