Skip to content

Use app shell as the primary response of the service worker #93

@ishitatsuyuki

Description

@ishitatsuyuki

What problem does this feature solve?

App shell is described in https://developers.google.com/web/updates/2015/11/app-shell

After the initial load, SSR basically takes as much time as the client to just render them. Unless nuxtServerInit is used, we can just take the SPA file and respond with it. It can be cached longer and is network resource efficient.

What does the proposed changes look like?

  • Expose an endpoint (with middleware) to get the SPA template (only for SSR server, already handled by generate)
  • Cache the SPA template (need to mess with revision, I don't know how)
  • Configure workbox to respond with it.
This feature request is available on Nuxt community (#c71)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions