Skip to content

fix(qwik-router): never cache loader error/redirect envelopes - #8731

Draft
maiieul wants to merge 1 commit into
QwikDev:mainfrom
maiieul:v2-loader-envelope-cache
Draft

fix(qwik-router): never cache loader error/redirect envelopes#8731
maiieul wants to merge 1 commit into
QwikDev:mainfrom
maiieul:v2-loader-envelope-cache

Conversation

@maiieul

@maiieul maiieul commented Jun 12, 2026

Copy link
Copy Markdown
Member

What is it?

  • Bug

Description

sendLoaderResponse applied the loader's expires max-age to every envelope, so error and redirect responses were cacheable. Only successful data envelopes get the header now.

@maiieul
maiieul requested a review from a team as a code owner June 12, 2026 18:46
@changeset-bot

changeset-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: baef674

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@qwik.dev/router Patch
eslint-plugin-qwik Patch
@qwik.dev/core Patch
create-qwik Patch
@qwik.dev/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@maiieul maiieul self-assigned this Jun 12, 2026
@maiieul maiieul moved this to Waiting For Review in Qwik Development Jun 12, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jun 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

@qwik.dev/core

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@8731

@qwik.dev/router

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@8731

eslint-plugin-qwik

npm i https://pkg.pr.new/QwikDev/qwik/eslint-plugin-qwik@8731

create-qwik

npm i https://pkg.pr.new/QwikDev/qwik/create-qwik@8731

@qwik.dev/optimizer

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/optimizer@8731

commit: baef674

@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview baef674

@maiieul
maiieul marked this pull request as draft June 12, 2026 19:16
@maiieul maiieul moved this from Waiting For Review to In progress in Qwik Development Jun 12, 2026
@maiieul maiieul closed this Jun 27, 2026
@github-project-automation github-project-automation Bot moved this from In progress to Done in Qwik Development Jun 27, 2026
@maiieul maiieul reopened this Jun 27, 2026
@maiieul maiieul moved this from Done to In progress in Qwik Development Jun 27, 2026
@wmertens
wmertens changed the base branch from build/v2 to main July 16, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

1 participant