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

How to handle SSR? #684

Open
C5H8NNaO4 opened this issue Mar 13, 2024 · 2 comments
Open

How to handle SSR? #684

C5H8NNaO4 opened this issue Mar 13, 2024 · 2 comments

Comments

@C5H8NNaO4
Copy link

How can I cache static assets from the dist folder but still make index.html hit the server for serverside rendering?

Can I somehow redirect /index.html to the server instead of service-worker cache if network connection is available?

@userquin
Copy link
Member

what meta framework are you using (Nuxt, Astro, SvelteKit)?

@C5H8NNaO4
Copy link
Author

I'm using Vite + React. Not sure what you mean by meta framework. I am currently working around it by dynamically excluding the index.html file from the precacheAndRouteCall in the serviceworker, but I'm pretty sure that's not supposed to be done.

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

No branches or pull requests

2 participants