Re:Donald Trump is the president-elect of the U.S.
by elsurudo on Wednesday November 09, 2016 @11:00AM
(#12911151)
Probably due to caching. The page looks exactly the same to all logged-out users, but need customization for logged-in users.
[ Parent
| on HN ]
Re:Donald Trump is the president-elect of the U.S.
by piyush_soni on Wednesday November 09, 2016 @11:43PM
(#12917803)
I 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?
Re:Donald Trump is the president-elect of the U.S.
by thesmok on Thursday November 10, 2016 @03:20AM
(#12918639)
Not just the top bar: Upvote/Unvote buttons on each comment are different for logged-in users.
Re:Donald Trump is the president-elect of the U.S.
by piyush_soni on Thursday November 10, 2016 @04:26AM
(#12918930)
Oh yes, I missed that. So that makes the whole webpage different.
Re:Donald Trump is the president-elect of the U.S.
by elsurudo on Thursday November 10, 2016 @02:11AM
(#12918364)
Sure, 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.