Skip to content

Conversation

@userquin
Copy link
Contributor

@userquin userquin commented Feb 7, 2026

I need to resolve a permanent redirection when requesting the webmanifest on local dev server or build + preview, works in the preview.

@danielroe wants to add the service worker, we'll need to:

  • review manifest options (adding categories)
  • review denylist and runtime caching
  • review ui logic to handle offline
  • prerender search page: this page on page refresh when offline will redirect to home page with the query param search
  • change PR title (I cannot change it, missing edit button)

NOTE: open pr preview in private browsing

resolves #1124

@vercel
Copy link

vercel bot commented Feb 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 8, 2026 5:38pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 8, 2026 5:38pm
npmx-lunaria Ignored Ignored Feb 8, 2026 5:38pm

Request Review

@codecov
Copy link

codecov bot commented Feb 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

'/manifest.webmanifest': {
headers: {
'Content-Type': 'application/manifest+json',
'Cache-Control': 'public, max-age=0, must-revalidate',
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not some minimal caching, e.g.:

Suggested change
'Cache-Control': 'public, max-age=0, must-revalidate',
'Cache-Control': 'public, max-age=3600',

?

Copy link
Contributor Author

@userquin userquin Feb 8, 2026

Choose a reason for hiding this comment

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

The webmanifest should be always checked like the service worker. Once web manifest stable we can change the cache control header.

Copy link
Contributor

Choose a reason for hiding this comment

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

There is a problem with the icon, it is square, but on other shapes of icons (for example, round ones), the edges are white, this needs to be fixed.

It would also be great to add a monochrome version of the icon to have this icon themed as well.

Screenshot_20260208_222757_Lawnchair.png

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to change the svg icons again, will be fixed once the service worker fixed (search page)

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.

PWA

3 participants