Skip to content

Commit

Permalink
Remove cache expiry from theme CSS
Browse files Browse the repository at this point in the history
The `ETag` takes care of cache busting
  • Loading branch information
raccube committed Feb 1, 2023
1 parent 679ecb9 commit ade0ac9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/controllers/user_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ade0ac9

Please sign in to comment.