MCPcopy Index your code
hub / github.com/codeaashu/claude-code / stripCacheControl

Function stripCacheControl

src/services/api/promptCacheBreakDetection.ts:160–168  ·  view source on GitHub ↗
(
  items: ReadonlyArray<Record<string, unknown>>,
)

Source from the content-addressed store, hash-verified

158}
159
160function stripCacheControl(
161 items: ReadonlyArray<Record<string, unknown>>,
162): unknown[] {
163 return items.map(item => {
164 if (!('cache_control' in item)) return item
165 const { cache_control: _, ...rest } = item
166 return rest
167 })
168}
169
170function computeHash(data: unknown): number {
171 const str = jsonStringify(data)

Callers 1

recordPromptStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected