Conversation
The tailnet listener's / goes through the shared app-html helper (br/gzip on Accept-Encoding, Vary, brotli prewarmed when the listener opens) with private, no-cache and a weak ETag so a repeat open revalidates with a 304. Loopback keeps the uncompressed no-store page; data routes stay no-store.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2032
The Inbox's
/through the tailnet listener ("Over your tailnet") now goes through the sharedpackages/shared/app-html.tshelper that remote-mode and--tailscalesessions use (#1617): brotli q5 / gzip 6 negotiated onAccept-Encoding,Vary: Accept-Encoding, brotli prewarmed when the tailnet listener opens.private, no-cacheplus a weak ETag of the page (304onIf-None-Match), so a repeat open from a phone costs a revalidation, not the body;no-cachestill asks each time, so a restart to update is never missed.no-store; compression only adds latency there), every data route (no-store), and the listener's owner-login / Host / Sec-Fetch-Site checks, which run before the page. The device door serves no HTML.Tests: new case in
packages/server/inbox-tailscale.test.ts(br and gzip decode to the page, identity, Vary, ETag + 304, HEAD, refusals still first, data routes, loopback unchanged). Raninbox-tailscale,inbox,inbox-notify-origin,inbox-devices,app-htmltests andbun run typecheck.