Docs
Search docs

Ask the browser to drop its HTTP cache for this origin

POST/api/sessions/clear-site-cache

clearSiteCache

No authentication, no body. Answers `204` with `Clear-Site-Data: "cache"`. The SPA fires it without awaiting on `/login`, on a session found dead and after logout, so the clear never rides a response anything waits on (Chrome holds the response while it clears).

Authentication is not described for this operation in the spec — that does not mean it is public. Check tokens and scopes.

curl

curl -X POST 'https://neosource.dev/api/sessions/clear-site-cache'

fetch

fetch("https://neosource.dev/api/sessions/clear-site-cache", {
  method: "POST",
});

Responses

204Cache clear requested

Standard errors

Bodies documented once for the whole API — see standard errors.

  • 429Rate limited — retry after the `Retry-After` header
  • 500Internal server error
  • 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
  • 504Gateway timeout — the request exceeded the server's handling budget