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

x/fresh_images/src/types.ts>ImageMiddlewareOptions

Fresh plugin for manipulating images on-the-fly.
Latest
interface ImageMiddlewareOptions
import { type ImageMiddlewareOptions } from "https://deno.land/x/fresh_images@v0.3.0/src/types.ts";

Options for the image middleware

Properties

rateLimit: number

The maximum number of concurrent image requests from a single IP address. (This should be set high enough to serve all images at least once.)

rateLimitDuration: number

The duration of the rate limit in milliseconds. Used as KV TTL.