Skip to content

Conversation

@autocracy
Copy link

@autocracy autocracy commented Feb 2, 2026

Description & motivation 💭

Add Cache-Control headers for /_app/immutable/* paths to enable aggressive browser caching of static content-addressable filenames. This has a strong performance impact when the UI is behind a proxy that is preventing multiplexing connections. Without it, I observe slow serial downloading of these static assets.

  • Set Cache-Control: public, max-age=31536000, immutable (one year)
  • Applied in hooks.server.ts

Testing 🧪

How was this tested 👻

  • [ X ] Manual testing
  • E2E tests added
  • [ X ] Unit tests added

Add comprehensive test coverage for Cache-Control header middleware in hooks.server.ts:

  • Verify headers are set correctly for /_app/immutable/* paths
  • Verify headers are not set for other paths
  • Test preservation of existing headers
  • Cover various immutable asset subdirectories

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Observe header application and local caching using developer tools in browser.

Add Cache-Control headers for /_app/immutable/* paths to enable
aggressive browser caching of static content-addressable filenames.
This has a strong performance impact when the UI is behind a proxy
that is preventing multiplexing connections.

- Set Cache-Control: public, max-age=31536000, immutable (one year)
- Applied in hooks.server.ts

Add comprehensive test coverage for Cache-Control header middleware
in hooks.server.ts:
- Verify headers are set correctly for /_app/immutable/* paths
- Verify headers are not set for other paths
- Test preservation of existing headers
- Cover various immutable asset subdirectories
@autocracy autocracy requested a review from a team as a code owner February 2, 2026 18:38
@autocracy autocracy requested review from laurakwhit and removed request for a team February 2, 2026 18:38
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Jeff Ferland seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@vercel
Copy link

vercel bot commented Feb 2, 2026

Someone is attempting to deploy a commit to the Temporal Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants