Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy Cache-Control header #923

Merged
merged 3 commits into from
Oct 27, 2024
Merged

Proxy Cache-Control header #923

merged 3 commits into from
Oct 27, 2024

Conversation

rogueg
Copy link
Contributor

@rogueg rogueg commented Sep 30, 2024

I was running into an issue where refreshing an extension page would load stale code.

This happened because without the cache-control header, refreshing would use the cached version of index.html. Vite already sets the header appropriately, so we just need to pass it down through the service worker.

I was running into an issue where refreshing an extension page would load stale code.

This happened because without the cache-control header, refreshing would use the cached version of index.html. Vite already sets the header appropriately, so we just need to pass it down through the service worker.
Copy link

changeset-bot bot commented Sep 30, 2024

🦋 Changeset detected

Latest commit: 5eec23d

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

This PR includes changesets to release 1 package
Name Type
@crxjs/vite-plugin 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

Copy link

vercel bot commented Sep 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
vite-plugin-docs ⬜️ Ignored (Inspect) Visit Preview Oct 27, 2024 0:46am

Copy link
Contributor

@jacksteamdev jacksteamdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rogueg Fantastic! Thanks for fixing this

@jacksteamdev jacksteamdev merged commit 0a9ed4f into crxjs:main Oct 27, 2024
5 checks passed
@jacksteamdev
Copy link
Contributor

@rogueg This landed in @crxjs/[email protected]

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