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

timneutkens picture timneutkens  路  3Comments

YarivGilad picture YarivGilad  路  3Comments

olifante picture olifante  路  3Comments

flybayer picture flybayer  路  3Comments

havefive picture havefive  路  3Comments