Skip to main content

CachingHeaders

Overview

Usage

import { CachingHeaders } from 'keywork/http/headers/caching'

Properties

Age

Age: `string`

The time, in seconds, that the object has been in a proxy cache.

Defined in

http/headers/caching/mod.ts:27

Cache-Control

Cache-Control: `string`

Directives for caching mechanisms in both requests and responses.

Defined in

http/headers/caching/mod.ts:29

Clear-Site-Data

Clear-Site-Data: `string`

Clears browsing data (e.g. cookies, storage, cache) associated with the requesting website.

Defined in

http/headers/caching/mod.ts:31

Expires

Expires: `string`

The date/time after which the response is considered stale.

Defined in

http/headers/caching/mod.ts:33

Pragma

Pragma: `string`

Implementation-specific header that may have various effects anywhere along the request-response chain. Used for backwards compatibility with HTTP/1.0 caches where the Cache-Control header is not yet present.

Defined in

http/headers/caching/mod.ts:35