Repository navigation
Cache missing app icons per deployment - #305
Merged
Merged
Conversation
A visible app whose active deployment has no favicon now answers its deployment-addressed icon URL with a 404 that browsers keep as long as an icon. Pages no longer ask again for every icon-less app on each view. Inaccessible apps and URLs without the active deployment stay uncached. The icon lookup also reads without a transaction.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 2056d93 | Nov 22 2026, 04:17 PM |
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.
App lists show an icon for every app with an active deployment. The icon URL names that deployment, so a found icon is cached until the next deploy. A deployment without a favicon answered with an uncached 404. Each view of the overview, the apps list or My connections therefore asked again for every app without an icon, all at the same time.
Now a visible app whose deployment has no favicon gets a 404 with the same cache header as an icon, but only when the URL names the active deployment. Browsers then stop asking after the first view. When the app is deployed again, the URL changes, and a newly added icon appears.
Unchanged, and still uncached:
The icon lookup also reads without a transaction, like the other hot reads.
Tested by:
platform.integration.test.ts(cached miss, uncached miss withoutdeployment, outsider stays uncached), and the e2e icon tests inauth.spec.tsandorganization-writes.spec.ts.

Confidence Score: 5/5 
The PR appears safe to merge; no actionable issues were found.Summary
Missing app icons now return a privately cacheable 404 when the URL names the active deployment.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Request app icon] --> B{Visible active app?} B -->|No| C[Existing error response] B -->|Yes| D{Manifest has an icon?} D -->|Yes| E[Read and check stored bytes] E --> F[Return icon or existing error] D -->|No| G[Return empty 404] G --> H{URL names active deployment?} H -->|Yes| I[Private immutable cache] H -->|No| J[Private cache with revalidation]Reviews (1) · Last reviewed commit: "Cache missing app icons per deployment" · Reviewed by Greptile