3 ms·
To my understanding Reddit serves a highly customized content to each logged in user. Can you help me understand how HTTP level caching will solve this problem
by ssambros 10y ago
To my understanding Reddit serves a highly customized content to each logged in user. Can you help me understand how HTTP level caching will solve this problem more efficiently than their service level caching does right now?
- jjoe 10y agoYou cache non-logged in users to start with. And then you cache based on sessions (logged in users) because you don't really need to show fresh votes on each visit and right away (admitted to it in the article). Plus there's lots of room for ESI.
- Klathmon 10y agoThey already do those things. Logged out users see a "snapshot" of the page updated every so often. And I really don't think that caching pages per session would really help with their load all that much. Why not just use HTTP cache headers at that point? Plus while you don't really need to show votes ASAP, logged in users will want up to date comments.
- jjoe 10y agoThis is where ESI helps. You can portions of the page that don't change much.
- deleted 10y ago[deleted]