SealSkin
Server Referenceroutersui

UiStaticFiles

Static files with cache headers suited to content-hashed builds.

HTML entry points and JSON manifests are served with no-cache so a new build is picked up immediately; every other asset carries a content hash in its name and is cached for a year.

Functions

funcfile_response(full_path, stat_result, scope, status_code=200) -> Response

Add Cache-Control to the response Starlette builds.

paramfull_pathAny
paramstat_resultos.stat_result
paramscopeAny
paramstatus_codeint
= 200

Returns

fastapi.responses.Response

On this page