About the problem that ttf fonts are not cached in Android browsers

the ttf font is used in the business, and the cache is set to 30 days in nginx through expires. PC access can see the information read from the cache by (from memory cache). However, if you visit the same page on an Android browser, you will find that the font has to be obviously loaded every time it is refreshed. It makes people confused, and I also ask you to help analyze the reasons. Thank you.

Jun.17,2021

found the following article, hoping to help you

https://juejin.im/post/5a482d.

if setting http caching doesn't work, why not try the browser cache for h5? Simply set up manifest to use

Menu