Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/modules/cache/src/cache.interface.ts>CachePolicy

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
type alias CachePolicy
import { type CachePolicy } from "https://deno.land/x/deno_nest@v3.6.2/modules/cache/src/cache.interface.ts";

If you want the results to be cached directly by the browser, you can set it to public or private.

If you want get the results from the cache, but not to trans it by net, you can set it to no-cache, and the status may be 304 if no modified.

definition: "public" | "private" | "no-cache"