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

x/oak_nest/modules/cache/mod.ts>CachePolicy

Refer to nestjs to realize some common functions for Deno
Go to Latest
type alias CachePolicy
Re-export
import { type CachePolicy } from "https://deno.land/x/oak_nest@v2.0.0/modules/cache/mod.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"