check_cache

Function check_cache 

Source
pub async fn check_cache(
    __arg0: State<AppState>,
    __arg1: Query<ParseQuery>,
    __arg2: Path<String>,
) -> Result<Response, ApiError>
Expand description

GET /api/v1/cache/check/:hash

Check if a file hash is already cached. Allows client to skip upload if file is already processed.

The optional opening_filter query parameter must match the value used when the file was uploaded — different filter modes produce distinct cache entries.

Response:

  • 200: File is cached (geometry available)
  • 404: File not cached (needs upload), in the shared error envelope (#5750; the body was empty before)