Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit d6cdeea

Browse files
committed
Move Range header implementation from cache to shared
We'll need this for R2 too
1 parent 7d032ee commit d6cdeea

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

packages/tre/src/plugins/cache/gateway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { Headers, HeadersInit, Request, Response, fetch } from "../../http";
77
import { Clock, Log, millisToSeconds } from "../../shared";
88
import { Storage } from "../../storage";
99
import { isSitesRequest } from "../kv";
10+
import { _getRangeResponse } from "../shared";
1011
import { CacheMiss, PurgeFailure, StorageFailure } from "./errors";
11-
import { _getRangeResponse } from "./range";
1212

1313
interface CacheMetadata {
1414
headers: string[][];

packages/tre/src/plugins/cache/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,3 @@ export const CACHE_PLUGIN: Plugin<
9393
};
9494

9595
export * from "./gateway";
96-
export * from "./range";

packages/tre/src/plugins/shared/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ export function namespaceEntries(
6464

6565
export * from "./constants";
6666
export * from "./gateway";
67+
export * from "./range";
6768
export * from "./router";
6869
export * from "./routing";
File renamed without changes.

0 commit comments

Comments
 (0)