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

x/fresh/tests/deps.ts>Page#setCacheEnabled

The next-gen web framework.
Extremely Popular
Go to Latest
method Page.prototype.setCacheEnabled
Re-export
import { Page } from "https://deno.land/x/fresh@1.5.4/tests/deps.ts";

Toggles ignoring cache for each request based on the enabled state. By default, caching is enabled.

Parameters

optional
enabled: boolean
  • sets the enabled state of cache

Returns

Promise<void>