Draft persistence
FrontendSaving what someone typed before they submit.
Keeping long-form input in browser storage as it is written, so an expired session or an accidental navigation does not destroy four paragraphs of work.
See also State, Validation
HttpOnly
BackendA cookie flag that hides it from JavaScript.
Marks a cookie unreadable by page scripts, so a single injected script cannot steal a session. Tokens stored in local storage have no equivalent protection.
See also Cookie, Session
Index
Data & DatabasesA lookup structure that makes one kind of query fast.
Like the index at the back of a book. Makes lookups on the indexed column fast, does nothing for other columns, costs storage, and slows down writes. Chosen per query pattern, not sprinkled everywhere.
See also Query, N+1, Full table scan
RAG
AI in the stackSearch first, then answer from what was found.
Retrieval-augmented generation: find relevant passages in trusted content, put them in the prompt, and have the model answer from them with citations. When results are bad the culprit is usually the search step, not the model.
See also Embedding, Grounding, Hallucination
State
FrontendData that can change.
The real question is never what the state is but where the authoritative copy lives: the server, the URL, component memory, or browser storage. Two copies of the same fact will eventually disagree.
See also Server state, Search params