/static
Nothing request-specific: no params, no cookies, no fetch.頁面裡沒有任何跟請求有關的東西:沒有參數、沒有 cookie、沒有 fetch。
- mode
- ○ Static
- rendered at
- age產生後經過
How to test怎麼測
Press reload a few times. The time stays at the moment of next build and the age keeps growing, because this HTML was made once and is served as a file.按幾次 reload,時間都停在 next build 那一刻,「產生後經過」的秒數一直往上加。這份 HTML 只在 build 時產生一次,之後都直接當檔案回。
Only a production build shows the difference (next build, then next start, or the deployed site). Under next dev every route renders on every request.只有 production build 看得出差別(next build 之後 next start,或部署出去的網站)。next dev 底下每條路由每次請求都會重新產生。