Skip to main content
The Deno 2 Release Candidate is 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@v1.15.1/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"