In mid November I shipped a content hash that was supposed to stop one sale from refreshing a whole shop. For a few days it looked like the fix was holding.
From the 19th to the 21st the shop wrote between 19,805 and 44,323 ISR units a day. Vercel counts ISR writes in units, and larger changed output needs more units each time it is stored. Then Sunday, November 22, came in at 70,144 units with nothing deployed.
The shop is Lady Blue, the small headless Shopify store on Next.js 16 and Vercel Pro from my previous post . This follow-up is about the fallback I wrote into that fix.
How the hash decides what to refresh
For every product, the webhook handler keeps a sha256 of what the shop shows about it in a product metafield, with availability as a plain yes or no and the stock count left out. On products/update or a stock webhook the handler compares a fresh hash with the stored one.…