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

Layout doesn't cache and gets 1 server re-render for each broken image link #65886

Open
Kirill-Ponomarenko opened this issue May 17, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template.

Comments

@Kirill-Ponomarenko
Copy link

Kirill-Ponomarenko commented May 17, 2024

Link to the code that reproduces this issue

https://github.com/Kirill-Ponomarenko/next-cache-bug-2

To Reproduce

  1. Run pnpm build
  2. Run pnpm start
  3. Open http://localhost:3000/
  4. See Layout render messages in the server console on every page load indicating Layout re-render

Current vs. Expected behavior

Current:

Layout gets server side re-renders if Page has images with src to files not presented at the build time
No warnings during build or runtime

Expected:

Layout doesn't re-render
or
Warnings during build time

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro     
  Available memory (MB): 16335
  Available CPU cores: 12
Binaries:
  Node: 18.18.2
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.3.0-canary.68 // Latest available version is detected (14.3.0-canary.68).
  eslint-config-next: N/A
  react: 19.0.0-beta-04b058868c-20240508
  react-dom: 19.0.0-beta-04b058868c-20240508
  typescript: 5.1.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

next start (local)

Additional context

No response

@Kirill-Ponomarenko Kirill-Ponomarenko added the bug Issue was opened via the bug report template. label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

1 participant