Skip to content

Commit

Permalink
fix: Don't cache potentially large HTTP responses (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Jun 18, 2024
1 parent 89087f1 commit d70e114
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const engine = await new QueryEngineFactory().create({
async function query(url: URL): Promise<DatasetExt[]> {
const bindingsStream = await engine.queryBindings(selectQuery, {
sources: [url.toString()],
noCache: true, // Don’t cache HTTP responses because they may be large, especially for catalogs.
});

// Write results to an N3 Store for deduplication and partitioning by dataset.
Expand Down Expand Up @@ -193,6 +194,7 @@ async function findNextPage(url: URL): Promise<URL | null> {
`,
{
sources: [url.toString()],
noCache: true, // Don’t cache HTTP responses because they may be large, especially for catalogs.
}
);
const bindings = await bindingsStream.toArray();
Expand Down

0 comments on commit d70e114

Please sign in to comment.