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) -> ResponseAdd Cache-Control to the response Starlette builds.
paramfull_pathAnyparamstat_resultos.stat_resultparamscopeAnyparamstatus_codeint= 200Returns
fastapi.responses.Response