Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "sw/Prefetcher"

Index

Type aliases

DevtoolsAckMessage

DevtoolsAckMessage: { bufferedDevtoolMessages: DevtoolsRequestMessage[]; type: "layer0-devtools-ack" }

Type declaration

DevtoolsRequestMessage

DevtoolsRequestMessage: { browserCache: string; request: { method: string; prefetch: boolean; url: string }; response: { headers: {}; status: number; ttfb: number }; routeConfig?: RouteConfig; timestamp: number; type: "layer0-devtools-request" }

Type declaration

  • browserCache: string
  • request: { method: string; prefetch: boolean; url: string }
    • method: string
    • prefetch: boolean
    • url: string
  • response: { headers: {}; status: number; ttfb: number }
    • headers: {}
      • [key: string]: string
    • status: number
    • ttfb: number
  • Optional routeConfig?: RouteConfig
  • timestamp: number
  • type: "layer0-devtools-request"

RouteConfig

RouteConfig: { convertToGet?: HTTPMethod; criteriaPath?: undefined | string; edgeMaxAgeSeconds?: undefined | number; isPartialPathRoute: boolean; key?: CustomCacheKeyConfig[]; maxAgeSeconds: number; method?: HTTPMethod; pattern: string; prefetchUpstreamRequests?: undefined | false | true }

Type declaration

  • Optional convertToGet?: HTTPMethod
  • Optional criteriaPath?: undefined | string
  • Optional edgeMaxAgeSeconds?: undefined | number
  • isPartialPathRoute: boolean
  • Optional key?: CustomCacheKeyConfig[]
  • maxAgeSeconds: number
  • Optional method?: HTTPMethod
  • pattern: string
  • Optional prefetchUpstreamRequests?: undefined | false | true

Variables

Const BUFFER_DELAY_MS

BUFFER_DELAY_MS: 10000 = 10000

Const DEFAULT_MAX_AGE_SECONDS

DEFAULT_MAX_AGE_SECONDS: number = 60 * 2

Generated using TypeDoc