mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-04-01 22:49:11 +02:00
Set expiry of theme CSS to 3 months
The `ETag` from `fresh_when` takes care of cache busting here.
This commit is contained in:
parent
aaf797ed12
commit
99403988b7
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class UserController < ApplicationController
|
|||
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
|
||||
expires_in 3.months
|
||||
return if fresh_when theme, public: true
|
||||
|
||||
render plain: get_theme_css(theme), content_type: "text/css"
|
||||
|
|
Loading…
Reference in a new issue