Because of many duplicated fonts downloading need to add a cache for them to prevent that.
This PR based on @kumarsai solution.
On my project it reduced all the responses in several times! So it download the font only once and reuse the response for the further requests to the same font.
Because of many duplicated fonts downloading need to add a cache for them to prevent that. This PR based on @kumarsai solution. On my project it reduced all the responses in several times! So it download the font only once and reuse the response for the further requests to the same font.
Issue: https://github.com/tsayen/dom-to-image/issues/37