No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Need to exclude admin routes from prefetching in ssr+pwa mode

    Framework
    1
    1
    201
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fahad last edited by

      I want to dynamically load contents for my site and use PWA features e.g. saving apps on mobile and desktop.

      Currently, I have fresh installation with some test pages and components. All my routes and components are using dynamic imports to load js chunks only when user goes to a particular route or a component is rendered and it is working fine in SPA and SSR mode. The problem occurs in PWA mode when it prefetches all chunks.

      2019-10-15 17_28_28-DevTools - localhost_8080_.png
      Here everything is being downloaded and when I view admin component in browser (which is chunk 4.js) the size column mentions that it is already prefetched.

      In my case most users will be only there to view pages and it will put extra load on my server to provide unnecessary components for the user.

      1 Reply Last reply Reply Quote 1
      • First post
        Last post