MCPcopy
hub / github.com/withastro/astro / noCacheEndpoint

Function noCacheEndpoint

packages/astro/test/units/cache/app-cache.test.ts:41–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41function noCacheEndpoint() {
42 return createEndpoint(
43 {
44 GET: () => Response.json({ timestamp: Date.now() }),
45 },
46 { route: '/no-cache' },
47 );
48}
49
50function optOutEndpoint() {
51 return createEndpoint(

Callers 1

app-cache.test.tsFile · 0.85

Calls 2

createEndpointFunction · 0.90
jsonMethod · 0.65

Tested by

no test coverage detected