nuxt-modules / og-image

Generate OG Images with Vue templates in Nuxt.
https://nuxtseo.com/og-image
415 stars 27 forks source link

Cache runtime images #17

Closed sawa-ko closed 1 year ago

sawa-ko commented 1 year ago

Clear and concise description of the problem

Currently each time a domain is visited with an OG image generated by the package, it is rendered by the number of times the url is visited, which could have a negative effect on the server side.

Suggested solution

It would be nice to have an option to cache the images generated by the package, with a certain expiration time, etc. In this way it would be possible to better control the resources needed for image generation.

This affects more when using the browser strategy, and not the Satori strategy.

Alternative

None.

Additional context

No response

Validations

harlan-zw commented 1 year ago

This is now supported in the latest beta. See the Caching documentation for more details.