Relative Content

Tag Archive for typescriptviteserver-side-rendering

How do I add caching in create vite extra?

I’m implementing caching in a create-vite-extra project using lru-cache. My goal is to cache rendered HTML and serve it from the cache when available. The cache is defined and used in the *all route handler as shown below: