mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2070] [Issue]: remote runtime JSON API calls lack legacy no-store cache policy #1017
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1017
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2070
Originally assigned to: @cha1latte on GitHub.
Summary
Remote Runtime JSON API calls do not visibly preserve the legacy server/client no-store cache policy.
Expected behavior
Remote Runtime API traffic should avoid stale browser/proxy cache reuse for command, health, and stream-related JSON API paths:
Cache-Control: no-storeor an intentional equivalent unless a route deliberately sets a different cache policy.cache: "no-store"or an intentional equivalent.Actual behavior
Target 3 parityscan found explicit cache headers for managed assets, but no default no-store policy for
/api/invokeJSON responses or other JSON API responses. Refactor remote client fetches also do not setcache: "no-store".Legacy evidence:
packages/server/src/app.tshad anonSendhook that appliedCache-Control: no-storeto/api/*responses unless a route already set cache headers.packages/client/src/lib/api-client.tssetcache: "no-store"on shared API fetches, downloads, and SSE helpers.Refactor evidence:
src-tauri/src/http_server.rsapplies managed asset cache headers, but this scan found no default API no-store hook for JSON API responses.src/shared/api/remote-runtime.tsfetches/health,/api/invoke,/api/import/st-bulk/run,/api/llm/stream, and cancel routes withoutcache: "no-store".src/shared/api/local-file-api.tscorrectly handles authenticated remote asset blobs separately; this issue is about JSON API/cache policy, not managed asset caching.Steps to reproduce
/api/invokeJSON responses before and after storage mutations/refetches.mainserver/client no-store API behavior.Impact area
Environment
refactor/ Target 3 rescan on 2026-06-04; refactor trace at9bcfb164; legacymaintrace at77a30fa4Logs, screenshots, or video
No live browser/cache repro attached. This is static parity evidence from Target 3.
Focused adjacent proof run:
Result: passed, 11 tests. This does not prove no-store cache behavior.
Regression notes
Legacy
mainexplicitly used no-store on both server responses and client fetch calls for API traffic. Refactor Remote Runtime has intentional asset cache headers, but the legacy JSON API no-store path was not found.Additional context
Split from Target 3 PERF/body/cache parity row:
Acceptance criteria:
cache: "no-store"or an intentional equivalent to remote client fetches for command/health/SSE API calls.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: