Skip to content

Application going in a infinite loop #866

@awais019

Description

@awais019

My app is going in an infinite loading loop in production. What could be the reason I guess the service worker is try to register again and again or resources are getting cached with duplicate revisions. I am using NUXT module. Here is my configuration

 pwa: {
    injectRegister: "auto",
    registerType: "autoUpdate",
    manifest: {
      name: "My app",
      short_name: "My app",
      theme_color: "#DFE0E2",
      background_color: "#0EA5E9",
      scope: "/",
      start_url: "/",
      id: "/",
      display: "standalone",
      orientation: "portrait",
      icons: [
        {
          src: "pwa-64x64.png",
          sizes: "64x64",
          type: "image/png",
        },
        {
          src: "pwa-192x192.png",
          sizes: "192x192",
          type: "image/png",
        },
        {
          src: "pwa-512x512.png",
          sizes: "512x512",
          type: "image/png",
          purpose: "any",
        },
        {
          src: "maskable-512x512.png",
          sizes: "512x512",
          type: "image/png",
          purpose: "maskable",
        },
      ],
    },
     workbox: {
      navigateFallback: "/offline",
      globPatterns: [
        "**/*.{js,json,css,html,ico,svg,png,webp,ico,woff,woff2,ttf,eit,otf}",
      ],
      globIgnores: ["manifest**.webmanifest"],
      cleanupOutdatedCaches: true,
    },
    client: {
      installPrompt: true,
      periodicSyncForUpdates: 20,
    },
    devOptions: {
      enabled: true,
      suppressWarnings: true,
      navigateFallback: "/offline",
      navigateFallbackAllowlist: [/^\/offline$/],
      type: "module",
    },
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions