summaryrefslogtreecommitdiff
path: root/src/SomhairlesDream.Server/ArtifactRunApi.fs
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-21 20:31:37 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-21 20:31:37 +0800
commit374afdcd7172402a0be0371964fd6d4040610d5a (patch)
tree6d9ada436948a7d1b5dd8185a3ff9a5af648e3b9 /src/SomhairlesDream.Server/ArtifactRunApi.fs
parent8d594b6a541c5ee2ab3ddf9fe870df790d0bb357 (diff)
downloadsomhairles-dream-fsharp-374afdcd7172402a0be0371964fd6d4040610d5a.tar.gz
feat(ui): loading overlay with instant mesh swap, no-store GLB, full-width viewport, ground grid, drop masthead title
Diffstat (limited to 'src/SomhairlesDream.Server/ArtifactRunApi.fs')
-rw-r--r--src/SomhairlesDream.Server/ArtifactRunApi.fs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SomhairlesDream.Server/ArtifactRunApi.fs b/src/SomhairlesDream.Server/ArtifactRunApi.fs
index 6c00d66..3a29d99 100644
--- a/src/SomhairlesDream.Server/ArtifactRunApi.fs
+++ b/src/SomhairlesDream.Server/ArtifactRunApi.fs
@@ -129,6 +129,9 @@ module ArtifactRunApi =
| Error message, _ -> error options 400 message
| _, None -> error options 400 "missing query parameter 'path'"
| Ok(projectId, runId), Some relativePath ->
+ // Step geometry must always be re-fetched: browsers and CDNs
+ // never cache GLB responses from this endpoint.
+ context.Response.Headers.["Cache-Control"] <- "no-store"
match options.Coordinator.StepArtifact(projectId, runId, relativePath) with
| Ok file -> streamArtifact context file
| Error RunNotFound -> error options 404 "run not found"