Closed LivingWithHippos closed 2 years ago
I'm not sure what's a good solution for this, fonts.kavin.rocks
is basically a worker hosted on Cloudflare Workers with the following source code:
addEventListener('fetch', function(event) {
const { request } = event
const response = handleRequest(request)
event.respondWith(response)
})
/**
* Receives a HTTP request and replies with a response.
* @param {Request} request
* @returns {Promise<Response>}
*/
async function handleRequest(request) {
const { pathname } = new URL(request.url);
return fetch("https://fonts.gstatic.com" + pathname, {
cf: {
cacheTtl: 31536000,
cacheEverything: true,
},
});
}
All it does is forward requests to fonts.gstatic.com
to prevent connections to google fonts.
If you do have a solution, let me know! I will re-open this issue then. I feel that creating an A record just for this is a bit overkill.
It's a little thing, but I was checking the network calls since I had some issues and noticed that some stuff it's loaded from ther
I get two calls, for
/s/materialiconsround/v65/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmM.otf
and/s/roboto/v27/KFOmCnqEu92Fr1Mu4mxP.ttf