Next.js: why buildId of app.js differs from all other next.js files?

Created on 22 Oct 2017  路  2Comments  路  Source: vercel/next.js

If you look into the next.js doc you'll see:

image

since I want to use this buildId to make a predefined service worker file(not using runtime caching), I wonder why buildId for app.js differs from other js files. you can see screenshot of this behaviour in my project:

image

  • [ x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I think buildId should be a constant value between all files.

Current Behavior

buildId for app.js is different from all other next.js generated js files.

Most helpful comment

This has been changed in 5.1, the buildId is now used for app.js too.

All 2 comments

I'm in the same spot. Working on a service-worker to cache the app and make it a PWA using workbox through next-offline and it seems impossible to cache app.js.

@iamsoorena have you found any workaround for this?
I'm thinking about switching from next-offline to sw-precache-webpack-plugin.

This issue seems to be a bit old now (5 months), any support would be much appreciated.

This has been changed in 5.1, the buildId is now used for app.js too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

flybayer picture flybayer  路  3Comments

YarivGilad picture YarivGilad  路  3Comments

swrdfish picture swrdfish  路  3Comments

knipferrc picture knipferrc  路  3Comments

wagerfield picture wagerfield  路  3Comments