interface DnsPrefetchControlOptions

Interface for the dnsPrefetchControl middleware options.

Properties

optional
allow: boolean

Whether to allow DNS prefetching.

  • true: 'X-DNS-Prefetch-Control' header will be set to 'allow'
  • false: 'X-DNS-Prefetch-Control' header will be set to 'off'

Usage

import { type DnsPrefetchControlOptions } from "types/mod.ts";