Client Side API request caching #2897
Unanswered
victors1681
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@matheusps Based on our discussion yesterday, it looks like FastStore isn’t caching data on the client side.
Here’s how the server response is currently being cached:
faststore/packages/api/src/index.ts
Line 45 in 6fbffee
There’s no client request that includes a cache directive. But even if one were added, the CDN isn’t configured to properly handle the caching strategy. As a result, the UI keeps making the same request over and over:
faststore/packages/core/src/server/index.ts
Line 64 in 6fbffee
Beta Was this translation helpful? Give feedback.
All reactions