Static GitHub Issues

[550] Want understanding correct server-side cache page

prev: Use babel-polyfill
next: middleware auth.js generate error

hi , usually I use nuxt generate project , but I have a frequently update project need deploy nuxt project self hosting ( with SSR ).

As I know we can set nuxt.config.js cache as true to open cache and in page component set name and serverCacheKey for component cache ..

ok ... but I in my case , I always have 3-4 sec TTFB ( server-side fetch data alway ) ... In face , I check the source code , It really have cache for the date date ( no change when fresh )

ummm.... it seems like server-side return a cache data , but still block on async/await function... why it now just return a cache data , and escape asyncData function ? .. Am I do it correct ?

And if I fetch data in vuex serverInit , does it have cache ? Cloud I also get a long time TTFB ?

this is my code ... just fetch a fake 3 second delay function image

thanks.

and you can try my test on this url http://cache-test.dk.finpo.com.tw/
( note !! open this link need wait over than 3 seconds. ) ( maybe this link can't browser few month later ... )

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c473">#c473</a>)</em></sub></div>