Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.13.17/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"