Urgent.News

the world's headlines, one feed

Tech

Angular SSR renders your page for every visitor. Here is what that costs.

Angular SSR renders your page on the server, which is the whole point. It renders it again for the next visitor, and again for the one after that, and it ships nothing to stop that happening. On a page of mine, a 28 KB Angular 22 document, a render costs 17.2 ms of server time. That is not a disaster. It is also entirely wasted when a hundred people ask for the same page in the same minute and…

Abstract editorial illustration

Angular Server-Side Rendering (SSR) renders the page on the server for every visitor, which incurs a cost. For a 28 KB Angular 22 document, rendering takes 17.2 ms of server time. This cost is wasted when multiple users request the same page within a minute, as the rendered HTML remains unchanged. To address this, the ng-ssr-caching middleware was created.

It keeps the rendered HTML and serves it without rendering again. The cache integration involves setting an Entry object containing the body, ETag, and length, then using these values to set the ETag and Content-Length headers and end the response with the cached body. This approach reduces the server workload and speeds up response times.

The key takeaway is that caching reduces server workload but introduces shared cache security considerations.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written; read the original for the full account.

Read the original at dev.to →

More in Tech

Editorial illustration

Your Robot Coworker Is Still a Pilot

In February, BMW published the results of a pilot at its plant in Spartanburg, South Carolina. A humanoid robot made by Figure had been lifting sheet metal parts into a welding cell, ten-hour shifts…

Where Your Metrics Fold

The dashboard read 87 percent complete, and it was right: 87 percent of the scheduled tasks for the launch were genuinely done, ticked off, verified. The board did its job.

  • Single metric fails to capture incomplete project status
  • Four types of folds: composition, trajectory, structure, mechanism
  • Identifying folds requires asking four critical questions

Hardware Backdoors in x86 CPUs: The 2026 Hacker News Wake-Up Call

Hardware Backdoors in x86 CPUs: The 2026 Hacker News Wake-Up Call In late January 2026, the front page of Hacker News was dominated by a single, chilling headline: "Hardware backdoor found in X Series…

  • German security group discovers hardware backdoor PADMIN in x86 CPUs (2026)
  • Backdoor allows attackers to bypass security controls and access physical memory
  • PADMIN operates at core level, nearly impossible to disable via firmware settings