Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add header to debug chunk load #1351

Merged
merged 1 commit into from
Nov 8, 2024
Merged

feat: add header to debug chunk load #1351

merged 1 commit into from
Nov 8, 2024

Conversation

rmonnier9
Copy link
Contributor

@rmonnier9 rmonnier9 commented Nov 7, 2024

  • Amélioration technique.
  • Ajout d'un header sur les chunk loads

Ajout d'un header sur les chunk loads pour identifier sur quelle instance et sur quel build (en utilisant la date de build) a été créé une réponse.
Cela permettra d'identifier si il y a un problème de mise en cache au niveau de l'infra.

Copy link
Contributor

@XavierJp XavierJp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is it different from header annuaire-entreprises-instance-number ?

@rmonnier9
Copy link
Contributor Author

How is it different from header annuaire-entreprises-instance-number ?

It is directly set by Nextjs and it includes a date (that is somewhat equivalent to a buildid, enabling us to detect with which build the response has been made).

@rmonnier9
Copy link
Contributor Author

How is it different from header annuaire-entreprises-instance-number ?

If we get a 404 chunk load, but the new header is from the old build, we will know it is a cache related problem.

@rmonnier9 rmonnier9 merged commit e840ad0 into main Nov 8, 2024
2 of 3 checks passed
@rmonnier9 rmonnier9 deleted the debug-chunk-load branch November 8, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants