home_controller.rb 256 B

123456789
  1. # frozen_string_literal: true
  2. class HomeController < ApplicationController
  3. include WebAppControllerConcern
  4. def index
  5. expires_in(15.seconds, public: true, stale_while_revalidate: 30.seconds, stale_if_error: 1.day) unless user_signed_in?
  6. end
  7. end