Baixe grátis o app do Sua Música

Músicas para ouvir e baixar de graça!

ISR Revalidate Test

ISR revalidate test

Data is fetched from the backend (GET /user/56410228) when this page is generated. Edit TEST_REVALIDATE_USER_ID in TestRevalidateRepository.ts to a profile you can change (name/bio). Cached values stay the same until TTL (60s) or manual revalidation.

Cached (ISR snapshot)

User ID
56410228
Username
@guilhermeribeirosm
Name
Guilherme H Ribeiro
About (bio)
teste 223344556677
Followers
0
Backend path
/user/56410228
Page fetchedAt
2026-09-10T11:16:21.535Z
API base
https://app.suamusica.com.br/v2/

How to test

  1. Note the name / bio / followers above.
  2. Edit the user on the backend (Luach or profile edit) — change name or about.
  3. Hard-refresh this page — values should still be the old snapshot.
  4. Call manual revalidate (curl below).
  5. Hard-refresh again — values should match the updated profile.