Re:SPAs Were a Mistake
by horsawlarway on Wednesday March 02, 2022 @12:54PM
(#30530340)
Turbo is making your site an SPA, and hiding the implementation details from you
That's not what the article was about (it was very clearly advocating for the standard browser flow)
Re:SPAs Were a Mistake
by tomnipotent on Wednesday March 02, 2022 @05:53PM
(#30534527)
> You can cache rendered views
Sort of. There's been no shortage of vulnerabilities where user data has been exposed when an authenticated users request was cached and re-used for subsequent users. It's been my experience that most SSR apps disable caching for authenticated users, or rely on more explicit control of components for partial caching where possible.
Not necessarily. I think you're conflating caching/fetching and rendering here. You can cache rendered views in the same way you'd cache the data for those views.
Turbo does this, for example. When you navigate to a cached page it will display the page from the cache first, then make a request to update the cache in the background. So it's similar to what you describe, but with server-rendered content.