Photo Showcase is a Next.js app that fetches and caches Unsplash photos differently depending on the page.
- The static page fetches and caches Unsplash API data at build time.
- The dynamic page fetches the data at runtime and doesn't cache it.
- The isr page splits the difference between the static/dynamic methods.
- The dogs page fetches/caches dog photos at build time, but all other topics are fetched/cached at runtime.
- The search page uses client-side fetching and a server-side API route handler because user input is necessary to render a photo.