Fix #4111: Cache custom CSS.
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
<%= javascript_pack_tag "application" %>
|
||||
<%= stylesheet_pack_tag "application" %>
|
||||
<% if CurrentUser.user.custom_style.present? %>
|
||||
<%= stylesheet_link_tag custom_style_users_path, :media => "screen" %>
|
||||
<%= stylesheet_link_tag custom_style_users_path(md5: Digest::MD5.hexdigest(CurrentUser.user.custom_style)), media: "screen" %>
|
||||
<% end %>
|
||||
<% if Danbooru.config.twitter_site %>
|
||||
<script type="application/ld+json">
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= raw CurrentUser.user.presenter.custom_css %>
|
||||
<%= raw @css %>
|
||||
|
||||
Reference in New Issue
Block a user