Home
Support Forums

PWA message Is not shown!

My website is PWA! But the installable notification is being shown after 2-3 reloads. I need help with this because everything is correct!

Hi @mojahani,

This is how service workers work. They installable notification is only shown after the service worker is completely installed. It won’t need a refresh it just takes time depending on all the files that you’re caching. You can check the Application tab in Chrome Developer Tools to check when the service worker has completed installing.

This is not a Netlify-specific issue.

But the previous build was faster! I don’t know why the new version of my website is slower! Do you know any was to decrease this time?

The solution would be to cache less files totalling to less data.

A more complicated solution would be to cache only 1 or two files to begin with, and then once the PWA notification is shown, you can cache the remaining files.

@mojahani

Your service worker installs.

In Firefox this is what happens in the Network tab

And in Chrome

This is nothing to do with Netlify. This is what you have built.

@coelmay @hrishikesh Do you know how I can cache less files to start with?

Hi @mojahani,

You’re caching so many files with your service worker:

For some reason, you’re also adding a query string parameter. I believe you’re trying to do that for analytics.

var precacheConfig = [["401/index.html", "f6628beb00442696530c903b8deb3dab"], ["404.html", "382c7932dce38d76ed04e1584471dcd5"], ["admin/config.yml", "07bbac21ae7eca1b8b93707a74e3ac8a"], ["admin/index.html", "3fa472dfcaa50827290dd028c2cd3350"], ["admin/preview.css", "cb5a0f885fef9251c2def9163b3f2b6e"], ["admin/widgets.css", "eaa223b925a8bb5a964c2fe86558f619"], ["assets/css/components.css", "46e3c51a9d0cfed40aa8e8a406f1b4fe"], ["assets/css/normalize.css", "4951cc88307c632cf285d3ba988ab283"], ["assets/css/wearemoonlight.css", "b449198fb9ce00ca89ba10f8a5412c9d"], ["assets/documents/checkmark.json", "e40d4d90a5f17338c6b2296447ac2831"], ["assets/external/609655df880bf46d6f2f9c18_em20design20-20webflow20loading-poster-00001.jpg", "084b0f8019d41b85a8fcd126bf48f77c"], ["assets/external/60965639185566e871f7d982_em20portfolio20v2020-poster-00001.jpg", "dfa5d8ef42524f907eeec6b4dfb04d4c"], ["assets/external/60d74c4f5cf05b7f780c44e6_group2027.png", "1c2572947a07655581bb554ea0df5e38"], ["assets/external/60f682def31c5a22905268ef_moonlight20-20de20vere20intellica.png", "cb63c15716ea9b43b9a3cb47378b3247"], ["assets/external/60f682def31c5a56465268eb_eh20-20moonlight.png", "b0bd01795214899931120aef2412c469"], ["assets/external/60f682def31c5a63045268cf_moonlight-expedia.png", "81c9ab3f31e985404077cc48f13e4d28"], ["assets/external/60f682def31c5a6a3c5268e4_moonlight20-20this20is20bakery.png", "126ce9655414cd9f995443871758473a"], ["assets/external/60f682def31c5a740f5268ec_moonlight-wilda.png", "74258eb0850adeee4b072753a1b56efd"], ["assets/external/60f682def31c5a91fc5268ed_moonlight-sacredspace.png", "31624dcea8bf69623eb00efc08267225"], ["assets/external/60f682def31c5a9a835268ee_moonlight-idp.png", "c23c8917594ba31241d9f2cd0648c481"], ["assets/external/60f682def31c5a9d145268cb_em20design20-20webflow20loading-poster-00001.jpg", "084b0f8019d41b85a8fcd126bf48f77c"], ["assets/external/60f682def31c5a9d145268cb_em20design20-20webflow20loading-transcode.mp4", "8731342e45754ab8c68711b691d2d20d"], ["assets/external/60f682def31c5a9d145268cb_em20design20-20webflow20loading-transcode.webm", "644a1e8cd1dca14055b5c59283553ee8"], ["assets/external/60f682def31c5ac9c15268c1_em20portfolio20v2020-poster-00001.jpg", "dfa5d8ef42524f907eeec6b4dfb04d4c"], ["assets/external/60f682def31c5ac9c15268c1_em20portfolio20v2020-transcode.mp4", "862a1574fd55e65471a6ef20a23750e2"], ["assets/external/60f682def31c5ac9c15268c1_em20portfolio20v2020-transcode.webm", "513ae3b817320fa5cedd5ef9c386927e"], ["assets/external/ezgif.com-gif-maker.webp", "bf70628991b91eb0aadda452b5771c47"], ["assets/external/jquery-3.5.1.min.dc5e7f18c8.js", "dc5e7f18c8d36ac1d3d4753a87c98d0a"], ["assets/external/utility-lock.ae54711958.svg", "ae54711958acb63cf913826c72df58b3"], ["assets/fonts/moonlight-claasic-2-l.ttf", "0249b691e61e2bd0e4f6b08c627727a3"], ["assets/fonts/moonlight-classic-l.otf", "2d9a9397adddf1956fc16655e1d0baeb"], ["assets/fonts/moonlight-classic-li.otf", "66c194714c45fc215c95ea74b79af3a3"], ["assets/fonts/moonlight-classic-r.otf", "18504efe2e652cdfa76b686e99003309"], ["assets/fonts/moonlight-classic-ri.otf", "4589e55a21c58ee935f91eec2e7755d9"], ["assets/fonts/moonlight-modern-l.ttf", "880401ec0686993ae377a6621e50d58a"], ["assets/fonts/moonlight-modern-m.ttf", "c00931e8b3cca8082101c210353fe27e"], ["assets/fonts/moonlight-modern-n.ttf", "13568ea57eda4ce469fa0600426963a5"], ["assets/images/10f8ee74-1080.png", "2fd9e57cc28dd6f70b7ce290173db6a2"], ["assets/images/10f8ee74-1080.webp", "aec225e75a35d9c6cdd9b469228be53d"], ["assets/images/10f8ee74-800.png", "11babf48301b81689f9a6417362ebdb5"], ["assets/images/10f8ee74-800.webp", "58263c351e8ab742f84ddc7620331dab"], ["assets/images/1164b11e-1080.png", "61a23fbec05e2cc1febec56dcced2afe"], ["assets/images/1164b11e-1080.webp", "52f2a724d75d803e90d780ffa027eff5"], ["assets/images/1164b11e-1600.png", "e2991727045b9614a9f47e293c5a7476"], ["assets/images/1164b11e-1600.webp", "971fefa8f661d530781a0c7e0c01350d"], ["assets/images/1164b11e-800.png", "892fcab38c581b905d4472410d8661b6"], ["assets/images/1164b11e-800.webp", "afbec25687394b3fa7cdb86b51bd86e9"], ["assets/images/21e7a0f9-1080.png", "9d49e9ed1fb65fd158eda8cef1d780bb"], ["assets/images/21e7a0f9-1080.webp", "05b389460c2d6afa7c98bc669214ad7b"], ["assets/images/21e7a0f9-1600.png", "bc2308a7c8b0aac83cff76ce1f04a388"], ["assets/images/21e7a0f9-1600.webp", "9d62a120d152a58bfc5231f76c23348c"], ["assets/images/21e7a0f9-800.png", "fa3f1b5c867e1758cec2e891dbe929dd"], ["assets/images/21e7a0f9-800.webp", "0b5c24286281a2244562254c2daacf74"], ["assets/images/2f282fda-1080.png", "93ab4c4a4d63ab48a4d1d09853250dd4"], ["assets/images/2f282fda-1080.webp", "cae02e920c2bc275bbf3e47d61a21061"], ["assets/images/2f282fda-800.png", "a32e0a8737db7c8b9c992ccc7daf9ec4"], ["assets/images/2f282fda-800.webp", "855a25c43a7d2c4b0bdbf6c9addd5c15"], ["assets/images/3b7c6c92-720.jpeg", "70e63fb24541e5cedd9e95aa25f93f8e"], ["assets/images/3b7c6c92-720.webp", "c0702d312964880ccc8600ef61c2bca2"], ["assets/images/798ce8c8-1080.png", "5e158d25a3bbeee1f5757e29be848be0"], ["assets/images/798ce8c8-1080.webp", "773efa8b2861bea240ac87514a9668b5"], ["assets/images/798ce8c8-1600.png", "c1e540d0322bd1cb47aa10c9fbc75810"], ["assets/images/798ce8c8-1600.webp", "188b8d40c01d2c9fa2397ead0883fc8f"], ["assets/images/798ce8c8-800.png", "d8534fc6bdd0d4e6fe4e594cacf079e1"], ["assets/images/798ce8c8-800.webp", "51ada5cd7df3c14c320e518ae2698571"], ["assets/images/93ab8b76-1080.png", "0e7bae75341aa0e0ea88c9496c52cd42"], ["assets/images/93ab8b76-1080.webp", "085d83446e68426cd4e322bf0ad9ebe7"], ["assets/images/93ab8b76-1600.png", "24d9dee5aff77f365d9044610ad8aaae"], ["assets/images/93ab8b76-1600.webp", "5e5dce9379a51921c2fc07c76bf09f64"], ["assets/images/93ab8b76-800.png", "36afa2700d971f6778b892b8b047a67d"], ["assets/images/93ab8b76-800.webp", "387476c05916ea8b2be6660d1ca7984e"], ["assets/images/a17905d7-800.png", "b310bd564de7001480915c2f50544870"], ["assets/images/a17905d7-800.webp", "387f85f2acfb8127fa28601f12fc4a85"], ["assets/images/arrow-eclipse.svg", "839341e1ec4f14fb6772c685caaeebb9"], ["assets/images/arrow-up.svg", "00a349d6bd8437619f9eb24f95152a95"], ["assets/images/arrow.svg", "216ab8b04626219ba150843a832a319f"], ["assets/images/b93696bf-800.jpeg", "a352f8e78229a7f3138266efd9fd6798"], ["assets/images/b93696bf-800.webp", "b244423de17cd8c4a0dff683c470b3a4"], ["assets/images/c6450ab0-1080.png", "305d83f9d31727245e713de254d0c418"], ["assets/images/c6450ab0-1080.webp", "d2b1ff0bc6e611bae935d75f87f0037e"], ["assets/images/c6450ab0-1600.png", "3ca14e57bec72d1d6931aafd0a9b11bc"], ["assets/images/c6450ab0-1600.webp", "686416d0c7a04c3e2c1da73e528ccc87"], ["assets/images/c6450ab0-800.png", "e77f50f5501dc8fba6fafa2cbe632f4f"], ["assets/images/c6450ab0-800.webp", "0914350bd1dcb5e13684cbb7b60e876b"], ["assets/images/e55d2d8a-1080.png", "1a335b251715c264135b212569ba3871"], ["assets/images/e55d2d8a-1080.webp", "3db2d09a017f572d9a5c6f3c27ea5562"], ["assets/images/e55d2d8a-800.png", "6fa1ea32034859a801fd853cc59c1166"], ["assets/images/e55d2d8a-800.webp", "e3ffdb89d990ad59eea03a25af9a9b28"], ["assets/images/e7339b71-1080.png", "07ad021bf5d8ad0a9e8f18786a41d612"], ["assets/images/e7339b71-1080.webp", "49431428ef2accd56de930e7e952f63e"], ["assets/images/e7339b71-1600.png", "679b66bbcd52e3c80d78f4910cbc9c29"], ["assets/images/e7339b71-1600.webp", "ed4b0151f4b2a912a6adc86cc2bab369"], ["assets/images/e7339b71-800.png", "9557187f28f9852024db420d6073ee86"], ["assets/images/e7339b71-800.webp", "4d30c733b015d4f3fb04ee2b16e7264d"], ["assets/images/favicon.png", "a066016b44d4ab6704e57931fc23dbc0"], ["assets/images/fed533ac-1080.png", "4a9d4608cb88d1bf7580f14aa785e198"], ["assets/images/fed533ac-1080.webp", "9a004d0a4b5ce3d437309a16c5a5085a"], ["assets/images/fed533ac-800.png", "89202bc0114939f49c83a760cd3bb29f"], ["assets/images/fed533ac-800.webp", "512599164b4678e4e036cea489855b5b"], ["assets/images/frame-6-5-1-p-1080.png", "b1bc39d0146906d30cbd4edab374e4f8"], ["assets/images/frame-6-5-1-p-1600.png", "75dece7635302502dc7c41bc3be2c8b4"], ["assets/images/frame-6-5-1-p-2000.png", "a3b86ea258cc7a068f0acf02531a8944"], ["assets/images/frame-6-5-1-p-500.png", "abcec83ddebdef34d51018616563d28c"], ["assets/images/frame-6-5-1-p-800.png", "ff6a108c12668e8578c2a4818a662fa7"], ["assets/images/frame-6-5-1.png", "7116d26d8d9bd8d9ae0af15d9d4bfe05"], ["assets/images/moonlight-bg-p-1080.png", "06d3dc18f78426484d05aff0252a2c7c"], ["assets/images/moonlight-bg-p-130x130q80.png", "47f100f542f0730e83830646ae3ee261"], ["assets/images/moonlight-bg-p-500.png", "11c1eb711c5f2be4636e413da2195a25"], ["assets/images/moonlight-bg-p-800.png", "67433f646c4b835192bff0c8ab1016cc"], ["assets/images/moonlight-bg.png", "50d4f0b905887d9068f1d4e5281e318a"], ["assets/images/moonlight-circle.svg", "dc2534aa3bc0abbd342ac0e03387a5f0"], ["assets/images/moonlight-hero-p-130x130q80.jpeg", "cd6036487b0daf51114ca4cf52e33819"], ["assets/images/moonlight-hero-p-500.jpeg", "78ac9149bebd9785d277dc4eaece8d7e"], ["assets/images/moonlight-hero-p-800.jpeg", "4ccaf2f85b3ce967c869d37dddae6143"], ["assets/images/moonlight-hero.jpg", "073fa6c28e9c54992d6656ebe1abfbb8"], ["assets/images/moonlight-img-2-p-130x130q80.png", "02cc3116e1b56c90c126c8d02c535553"], ["assets/images/moonlight-img-2-p-500.png", "fd2c6f18a970bca3e412354f13090356"], ["assets/images/moonlight-img-2.png", "34c05cd4c51b6c2494873a64eeb2f69a"], ["assets/images/moonlight-img-3-p-130x130q80.jpeg", "3eb57087ffb0fb1a42206412ad5af6b8"], ["assets/images/moonlight-img-3.jpg", "a0f797f70cf6c00983f5c7f09673a67e"], ["assets/images/moonlight-logo.svg", "c5975450df0f90564f29f368879b4bfe"], ["assets/images/moonlight-star-icon.svg", "0b13723f19b53b00f9f071bd89eeb3ef"], ["assets/images/small-img-p-1080.png", "89e24288eafee144f272f99c37b2cf29"], ["assets/images/small-img-p-130x130q80.png", "506451808315603d7df7fc6b6e7f7f8b"], ["assets/images/small-img-p-500.png", "f85568455f511452da28ca0457f62de1"], ["assets/images/small-img-p-800.png", "235e17c6792f9c98806d749751eef88b"], ["assets/images/small-img.png", "379846bb8e63bca57c1f1e9c31c1b4b7"], ["assets/images/texture-p-1080.jpeg", "5d5fc1950ed3dac11abe0093ee44f7be"], ["assets/images/texture-p-130x130q80.jpeg", "254538e88e263a7736b562efc46d4c9e"], ["assets/images/texture-p-1600.jpeg", "71a285604e72d2b815628547ce41baa6"], ["assets/images/texture-p-2000.jpeg", "f14c17a5a2761f5f72ad0fa77d856061"], ["assets/images/texture-p-2600.jpeg", "cf24405794fcb6685105e783ff69c95a"], ["assets/images/texture-p-3200.jpeg", "508e476eafe15eec72fc012ea25c9005"], ["assets/images/texture-p-500.jpeg", "a76b0982b9876fd4024e507b75013ebb"], ["assets/images/texture-p-800.jpeg", "849457c3ca1247bd51b805362f595fa1"], ["assets/images/texture.jpeg", "8a41be1883b4e1a89b7f991b8323bc53"], ["assets/images/webclip.png", "045e4dcedf04d012644fb8a6fcde2163"], ["assets/js/udesly-11ty.min.js", "a755bb26c8ba34b524a9594d97a59598"], ["assets/js/wearemoonlight.js", "fba02fed3273c27e767e960920a1b055"], ["assets/videos/em-design-webflow-loading-poster-00001.jpg", "084b0f8019d41b85a8fcd126bf48f77c"], ["assets/videos/em-design-webflow-loading-transcode.mp4", "8731342e45754ab8c68711b691d2d20d"], ["assets/videos/em-design-webflow-loading-transcode.webm", "644a1e8cd1dca14055b5c59283553ee8"], ["assets/videos/em-portfolio-v2020-poster-00001.jpg", "dfa5d8ef42524f907eeec6b4dfb04d4c"], ["assets/videos/em-portfolio-v2020-transcode.mp4", "862a1574fd55e65471a6ef20a23750e2"], ["assets/videos/em-portfolio-v2020-transcode.webm", "513ae3b817320fa5cedd5ef9c386927e"], ["index.html", "87f9772f4f456c435775d1a342949b49"], ["projects/claudia-vega/index.html", "918dba53167119289e55428f27d1c5f8"], ["projects/de-vere-intellica/index.html", "918dba53167119289e55428f27d1c5f8"], ["projects/ellion-hitchings/index.html", "918dba53167119289e55428f27d1c5f8"], ["projects/em-webflow/index.html", "918dba53167119289e55428f27d1c5f8"], ["projects/expedia-group/index.html", "918dba53167119289e55428f27d1c5f8"], ["projects/idp/index.html", "918dba53167119289e55428f27d1c5f8"], ["projects/keen/index.html", "918dba53167119289e55428f27d1c5f8"], ["projects/sacred-space/index.html", "918dba53167119289e55428f27d1c5f8"], ["projects/this-is-bakery/index.html", "918dba53167119289e55428f27d1c5f8"], ["projects/wilda/index.html", "918dba53167119289e55428f27d1c5f8"], ["projects/xi-studio/index.html", "918dba53167119289e55428f27d1c5f8"], ["sitemap.xml", "94234bc96d2cbffd90a0518f540654d5"]];

This is the long list of files you have set in you service worker to be cached. I don’t think all are needed, looks like you’re caching your entire website to work offline.

39 MB of service worker data is not something your users would want.

Do note that, even though 21 KB is being shown for service worker, that’s just the actual size of the service worker file. The data stored by service worker is counted in Cache storage.

Thanks for your information! I got it.