module

Ktistec::Assets

Cache-busting for static assets.

A digest of an asset's contents is appended to its path as a query parameter (see Utils::Paths.asset_path).

Class methods

digest?(path : String) : String | Nil

Returns a digest of the asset at request path path.

Returns nil if the asset does not exist.

Digests are cached. A cached digest is recomputed when the asset's modification time changes, so assets rebuilt under a running server are picked up without a restart.

Source