Next.js Discord

Discord Forum

PWA doesn't show fallback page on Link clicking unless i reloaded the page

Unanswered
Dwarf Crocodile posted this in #help-forum
Open in Discord
Dwarf CrocodileOP
I'm using PWA (Progressive Web App) in my Next.js project, particularly with a Pages structure. In the next.config.js, I've configured a fallback page for my next-pwa setup, and it's functioning correctly under normal circumstances. However, I'm encountering an issue when navigating my PWA app offline. While cached pages display as expected when I navigate to them without an internet connection, navigating to non-cached pages doesn't immediately trigger the fallback page. Instead, the fallback page only appears after I reload the page. I expected the fallback page to show up instantly when navigating to any non-cached pages during an offline session.

0 Replies