storefront
UAG Storefront Updates 2021-10-28
October 28, 2021
2021-10-28
Features:
- Upgraded to Gatsby v4
- U by UAG collection pages and product pages now use DSG (Deferred Static Generation). See explanation below.
- The copyright text in the Footer should now use the current year
Bug fixes:
- Fixed bug where searching by SKU sometimes caused the Search component to render a blank screen
DSG or Deferred Static Generation
Gatsby v4 introduces DSG, which allows us to defer non-critical page generation until user request.
Instead of being generated at build time, deferred pages are built and cached when accessed by a user at run time.
- Netlify skips these pages during the build phase
- User A visits /products/some-u-product. Since this is the first time any user has visited this URL since this build was deployed, a worker builds and serves this page to User A and then caches the page for the next visitor.
- User B visits /products/some-u-product. Since User A previously visited this page, the CDN serves User B the cached version.
This should significantly speed up builds while allowing us to choose which pages to generate at build time.