* fix: reduce public bootstrap requests and revalidate content * fix(controller): use a weak ETag for revalidated public JSON /api is gzip-compressed by middleware that runs after the handler returns, and the validator is computed over the uncompressed body. The compressed and identity forms of one payload therefore share a validator, which a strong ETag must not do -- it asserts byte-for-byte equality across representations (RFC 9110 8.8.1). Serve W/ instead. Weak comparison ignores W/ on both operands, so etagMatches now strips it from the served validator as well as from each candidate. Stripping only the candidate would make a weak served validator match nothing and silently disable every 304. Vary: Accept-Encoding stays. Weakening the validator makes revalidation correct, but it does not separate the two encodings in a shared cache. * fix(test): align response cookie helper name * fix(auth): revalidate stale route sessions * Update web/src/features/about/api.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * test: remove newly added PR tests --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| __tests__ | Loading commit data... | |
| admin-permissions.ts | Loading commit data... | |
| api.ts | Loading commit data... | |
| auth-session-sync.ts | Loading commit data... | |
| auth-session.test.ts | Loading commit data... | |
| auth-session.ts | Loading commit data... | |
| avatar.ts | Loading commit data... | |
| build-metadata.ts | Loading commit data... | |
| channel-connection-info.ts | Loading commit data... | |
| colors.ts | Loading commit data... | |
| constants.ts | Loading commit data... | |
| content-format.ts | Loading commit data... | |
| cookies.ts | Loading commit data... | |
| copy-to-clipboard.ts | Loading commit data... | |
| currency.ts | Loading commit data... | |
| dayjs.ts | Loading commit data... | |
| dom-utils.ts | Loading commit data... | |
| format.ts | Loading commit data... | |
| frontend-cache.ts | Loading commit data... | |
| handle-server-error.ts | Loading commit data... | |
| http-client.ts | Loading commit data... | |
| http-status-code-rules.ts | Loading commit data... | |
| legacy-route.test.ts | Loading commit data... | |
| legacy-route.ts | Loading commit data... | |
| lobe-icon.tsx | Loading commit data... | |
| localized-text.ts | Loading commit data... | |
| motion.ts | Loading commit data... | |
| nav-modules.ts | Loading commit data... | |
| oauth.ts | Loading commit data... | |
| passkey.ts | Loading commit data... | |
| roles.ts | Loading commit data... | |
| secure-verification.ts | Loading commit data... | |
| server-error-message.test.ts | Loading commit data... | |
| server-error-message.ts | Loading commit data... | |
| session-hint.ts | Loading commit data... | |
| show-submitted-data.tsx | Loading commit data... | |
| theme-customization.ts | Loading commit data... | |
| theme-radius.ts | Loading commit data... | |
| time.ts | Loading commit data... | |
| use-chart-theme.ts | Loading commit data... | |
| use-controllable-state.ts | Loading commit data... | |
| utils.ts | Loading commit data... | |
| vchart.ts | Loading commit data... |