Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

AssetRecord

interfaz

Un archivo del build que el host puede servir públicamente.

ts
import type { AssetRecord } from "@meekojs/meeko/server";

Source code src/server/runtime/assets.ts:11

Declaración #

ts
interface AssetRecord {
	readonly type: string
	readonly etag: string
	readonly size: number
	readonly immutable?: boolean
}

Example #

ts
import type { AssetRecord } from "@meekojs/meeko/server";

const logo: AssetRecord = { type: "image/png", etag: "\"k3Jd9s\"", size: 5120 };

Propiedades #

type #

propiedad sólo lectura

readonly type: string

Valor de la cabecera content-type.

etag #

propiedad sólo lectura

readonly etag: string

Validador fuerte derivado del contenido.

size #

propiedad sólo lectura

readonly size: number

Tamaño en bytes (content-length).

immutable #

propiedad sólo lectura opcional

readonly immutable?: boolean

Los archivos con hash de contenido nunca cambian bajo la misma URL; se sirven como immutable.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/server/runtime/assets.ts