Next.js: Immutable build artifacts

Created on 6 Jan 2017  路  4Comments  路  Source: vercel/next.js

If we produce build artifacts with hashes in them, we could send them with immutable Cache-Control headers.

I think this is a better option than just naming it something like build.js

p1

Most helpful comment

@arunoda ideally a prod-only behavior, as well

All 4 comments

Yep. I think that's doable and much needed in a production deployment.
I'll work on this.

@arunoda ideally a prod-only behavior, as well

Highly recommend doing this - fingerprinting builds has worked great for our team in the past.

Okay. Now we have it via #745

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rauchg picture rauchg  路  208Comments

timneutkens picture timneutkens  路  250Comments

timneutkens picture timneutkens  路  72Comments

Timer picture Timer  路  60Comments

iamstarkov picture iamstarkov  路  119Comments