~cytrogen/masto-fe

ref: 340f1a68becaf7c0f67b0f3a6d101213c8ceff90 masto-fe/app/controllers/home_controller.rb -rw-r--r-- 256 bytes
340f1a68 — Matt Jankowski Simplify instance presenter view access (#26046) 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