I'm building a website with Nuxt and @nuxtjs/pwa. Recently I've started seeing this warning in the production build (deployed on Netlify).
Workbox is precaching URLs without revision info: /?standalone=true This is generally NOT safe.
They did provide a link for more information but it does little (for me) to explain how to fix the warning.
Can anyone point me in the direction of what this warning means and how I can fix it?
EDIT: So if I don't explicitly set 'start_url'
to ""
then '/?standalone=true'
is added to the precache manifest.
Generated Precache manifest:
"preCaching":["/?standalone=true","/?standalone=true"]
I had to explicitly set the start_url
to ""
in nuxt.config.js
pwa: {
icon:{
sizes: [64, 120, 144, 152, 192, 384,512],
},
meta: {
title: 'Title',
author: 'Author',
},
manifest: {
name: 'Name goes here',
short_name: 'NGH',
lang: 'en',
description: "",
background_color: '#ffffff',
start_url: "",
},
},