Skip to main content

Module static_files

Module static_files 

Source
Expand description

Static-file request handling with caching and content fallback.

serve_static_content routes an incoming URI to a static asset, prerendered HTML page, metadata file, or the content-repository fallback, applying the appropriate cache policy and ETag for each. StaticContentState carries the app context, matcher, and route classifier into the handler.

Structs§

StaticContentState

Constants§

CACHE_HTML
CACHE_METADATA
CACHE_STATIC_ASSET

Functions§

compute_etag
serve_static_content