From ade0ac96c0bdb3189bb6c775eda3f8fa83f0abfc Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Wed, 1 Feb 2023 19:00:17 +0100 Subject: [PATCH] Remove cache expiry from theme CSS The `ETag` takes care of cache busting --- app/controllers/user_controller.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 5cf207eea..164743742 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -23,8 +23,6 @@ def show def show_theme theme = Theme.where(user: User.where("LOWER(screen_name) = ?", params[:username].downcase).select(:id)).first return head :no_content if theme.nil? - - expires_in 1.day return if fresh_when theme, public: true render plain: get_theme_css(theme), content_type: "text/css"