Stranger6667 / css-inline

High-performance library for inlining CSS into HTML 'style' attributes
https://css-inline.org/
MIT License
244 stars 29 forks source link

Option to cache resolved stylesheets #314

Closed Stranger6667 closed 8 months ago

Stranger6667 commented 11 months ago

Generally, customizable resolvers will be nice (eg to provide a way to use the fetch API in WASM instead of our default impl). When implemented, we can ship a caching resolver that will be configurable in terms of the cache size / ttl.

The use case is when you have many emails to inline and all of them use the same remote stylesheet - caching would be of great help there.