diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-03-18 18:03:27 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-03-18 18:03:27 +0100 |
commit | 291012ec0c08f5323b2102eb4d2dc8714ddce4d9 (patch) | |
tree | 09e7a5fef106da1b6ebdc53ac0df62cafc159520 /app/controllers/application_controller.rb | |
parent | 6e3a4bcbc70bb33bfb0746cf3b2186ee9f4e6515 (diff) | |
parent | f85b66eb8cc9513822d0ece3928b12aa789bb410 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - app/controllers/accounts_controller.rb - app/controllers/follower_accounts_controller.rb - app/controllers/statuses_controller.rb All conflicts caused by the additional `use_pack` used for glitch-soc's theming system.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0209805d0..5401b9d59 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -227,6 +227,11 @@ class ApplicationController < ActionController::Base response.headers['Vary'] = 'Accept' end + def mark_cacheable! + skip_session! + expires_in 0, public: true + end + def skip_session! request.session_options[:skip] = true end |