integrations icon indicating copy to clipboard operation
integrations copied to clipboard

3rd party API call results get cached on Gitbook's side

Open vincentderidder opened this issue 9 months ago • 0 comments

Context: I'm creating an Integration that fetches data from an API to display in a block on a Gitbook page with ContentKit

Problem: Old data keeps getting displayed, even after removing the integration completely and re-adding it. I suspect this is because Gitbook application caches the API calls en returns the cached result.

What I've tried Cache-Control on the API call set to no-cache Disabled the element cache with element.setCache({ maxAge: 0 });

Example: The Linear Integration faces the same issue. When adding a ticket to a page, the data does not update after changing it in Linear. Even after clearing local cache, trying a different browser or device

Expected behavior: We can set the cache maxAge and it gets respected by the Gitbook application so no old data gets shown.

vincentderidder avatar Apr 17 '25 18:04 vincentderidder