4 ms·
I am logging out to read as requested, but out of curiosity, why does logging out help the page loads?
by ohyoutravel 10y ago
I am logging out to read as requested, but out of curiosity, why does logging out help the page loads?
- elsurudo 10y agoProbably due to caching. The page looks exactly the same to all logged-out users, but need customization for logged-in users.
- piyush_soni 10y agoI still don't get it much (not a web developer). The only customization that I see is probably in the top bar. Can nothing be done that the page contents are still loaded from the cache but the top bar is loaded separately and customized for logged in users?
- elsurudo 10y agoSure, it can be. You'd either need to cache the portion without the top bar (so you still need to generate some HTML), or load the same page for everyone, and then do an AJAX request for the top bar, for example. Each has its pros and cons. Both of these increase complexity though, so they may not have done either.
- thesmok 10y agoNot just the top bar: Upvote/Unvote buttons on each comment are different for logged-in users.
- piyush_soni 10y agoOh yes, I missed that. So that makes the whole webpage different.
- manojlds 10y agoUnauthenticated requests can be and are cached.