Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce server load caused by anonymous viewing. #825

Closed
wants to merge 2 commits into from

Commits on Nov 23, 2018

  1. Reduce server load caused by anonymous viewing.

    Do not start a session if the current user is not logged in for public-facing pages.
    
    Mark pages that don't care about sessions as publicly cacheable.
    
    Keep the max age as 0 so proxies and browsers will still try to retrieve an updated version but can still fall back to the stale version if the site is down or too slow.
    
    Fixes mastodon#9035.
    BenLubar committed Nov 23, 2018
    Configuration menu
    Copy the full SHA
    7729b7c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b5872d View commit details
    Browse the repository at this point in the history