TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Problems I no longer have by using Server-side rendering

6 点作者 kakakiki4 个月前

2 条评论

efortis4 个月前
As a frontend dev I give him the first point, API versioning, but none of the other. For example:<p>2. Validation<p><pre><code> &gt; With Spring MVC, you add the validation annotations on the Java code and Thymeleaf can display them when something is wrong. </code></pre> In the same way the backend can respond with the problems in a 4xx<p>3. Security<p><pre><code> &gt; [In SSR], it is for instance trivial to not render a ‘delete’ button if the user is not an administrator. </code></pre> Conditionally rendering a delete button has nothing to do with security.<p>4. Secured file downloads<p><pre><code> &gt; With a SSR application, you can have a normal &lt;a href=&quot;..&quot;&#x2F;&gt; and the security aspect is handled on the server via the session. </code></pre> An SPA can have normal links as well. But the main problem here is implying that you can handle that security on the client.<p>---<p>SSR for CRUD apps is fine, but this article critiquing SPAs with innacurate examples, and in cases equating them with bloated tech.
PDFBolt4 个月前
Good read! SSR really helps with performance and SEO, but I’ve also found it useful in document automation. We use SSR-like techniques for generating PDFs from HTML on the server side, which helps maintain layout consistency and handle dynamic content better than client-side rendering. Curious have you run into any cases where SSR didn’t fully solve the problem, or do you think it’s the way forward for most apps?