~cytrogen/masto-fe

ref: 4e55001e65a10fc672a2a0a9520023f936d64dc7 masto-fe/app/controllers/home_controller.rb -rw-r--r-- 256 bytes
4e55001e — Claire Add a short-lived lock to trend refresh scheduler (#27253) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class HomeController < ApplicationController
  include WebAppControllerConcern

  def index
    expires_in(15.seconds, public: true, stale_while_revalidate: 30.seconds, stale_if_error: 1.day) unless user_signed_in?
  end
end