Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

207
Visualizações
Can you manually set the version number in a PWA?

TL;DR

Is there a way to set the version number of a PWA (Progressive Web Application) in the manifest.json or service-worker.js file to override the default (1) to a custom number?


I've already tried adding a version key in manifest.json, but the version number stayed at 1.

{
  "version": 2
}

I've also tried to add a version variable in service-worker.js, like so. However, that didn't set the version correctly either.

const version = 2;

// Also tried...
const VERSION = 2;

So, is it possible to set the version number in a PWA?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

An id field was added to the Web App Manifest spec in late 2021. Chrome implemented it in version 96.

I don't think anyone else has implemented this yet, but I believe you can get a similar effect with query parameters in the start_url.

Here's an article that explains further.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda