Replies: 2 comments 3 replies
-
Hi @bobbyshaw! First of all, thanks for the kind words! We're really excited for Catalyst and I'm glad you're diving deep into it! Feedback definitely welcomed. In regards to your question, this has definitely been interesting for us to tackle and certainly a case for discussion. Short answer would be that this is actually by design, but I can try to provide a long answer to the best of my knowledge. In reality this is a two part issue.
In conclusion, even though we do lose the Full Route Cache when we need dynamic routes, Data Cache will provide a huge boost in performance compared to a fully dynamic page. |
Beta Was this translation helpful? Give feedback.
-
Hey @bobbyshaw, to add on to @jorgemoya's answer above regarding our caching strategies, I will add that for the cart specifically, we are considering doing an optimization like you are describing (making the cart a client component that hits a new api route, revalidates when appropriate, etc.) which would allow us to still serve fully static pages when a cart is populated, though there will remain other scenarios where we cannot. We're weighing a complexity/performance tradeoff there and your feedback that this would be valuable from your perspective certainly helps. |
Beta Was this translation helpful? Give feedback.
-
Hi, first all, I'm pumped for Catalyst. Thanks for the fantastic efforts from everyone involved to get us to this point 👏.
I'll hold my hands up and say that some of the concepts are new to me so I'm doing a bit of a deep dive as I set up a catalyst-based demo store and look to integrate our apps.
One of the first things I noticed is that once you have an item in your cart, every page becomes a cache miss. This seems a shame.
My current understanding of this is based on this from the vercel docs:
and this.
When I look in the Header cart, I can see a request to cookies to get the cart ID so that the cart can be fetched server-side.
My question is: what would be the best practice approach to improve this?
Thanks for any guidance!
Beta Was this translation helpful? Give feedback.
All reactions