How caching works in the Storefront client
Every useStorefrontData call takes a cache option. Collection and product queries use long, because catalogue data changes rarely. Cart and account queries opt out entirely.
Under the hood this maps onto Nitro's cached event handlers, so the cache survives across requests on the server without any extra infrastructure.