Closed chesscai closed 6 years ago
Hello.请问: 使用 lru-cache 缓存页面与组件, 如何拿到类似 renderToString 的 html 缓存起来? 在koa中:
lru-cache
renderToString
app.use(async (ctx, next) => { ... nuxt.render(ctx.req, ctx.res, promise => { // 测试结果:回调始终不执行 }) })
很抱歉,我没这么使用过,所以不清楚如何解决。或许你可以到nuxt官方开一个issues
Hello.请问: 使用
lru-cache
缓存页面与组件, 如何拿到类似renderToString
的 html 缓存起来? 在koa中: