Skip to content

Commit 743ea36

Browse files
committed
去掉 head 里面的 cache,有问题;
1 parent a29cec4 commit 743ea36

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

app/views/layouts/application.html.erb

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,18 @@
1919
<%= render_page_title %>
2020
<meta charset='utf-8' />
2121
<meta name="keywords" content="<%= @meta_keywords %>" />
22-
<meta name="description" content="<%= @meta_description %>" />
23-
24-
<% cache("app-head-html") do %>
25-
<%= stylesheet_link_tag "front", "data-turbolinks-track" => true %>
26-
<% if mobile? %>
27-
<%= stylesheet_link_tag "mobile" %>
28-
<meta name="apple-mobile-web-app-capable" content="no">
29-
<meta content='True' name='HandheldFriendly' />
30-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
31-
<link rel="apple-touch-icon-precomposed" href="<%= asset_path("ios-icon.png") %>" />
32-
<% end %>
33-
<link rel="shortcut icon" href="<%= asset_path("big_logo.png") %>" />
34-
<%= auto_discovery_link_tag(:rss,feed_topics_url,:title => '订阅最新帖') %>
35-
<%= javascript_include_tag "app", "data-turbolinks-track" => true %>
22+
<meta name="description" content="<%= @meta_description %>" />
23+
<%= stylesheet_link_tag "front", "data-turbolinks-track" => true %>
24+
<% if mobile? %>
25+
<%= stylesheet_link_tag "mobile" %>
26+
<meta name="apple-mobile-web-app-capable" content="no">
27+
<meta content='True' name='HandheldFriendly' />
28+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
29+
<link rel="apple-touch-icon-precomposed" href="<%= asset_path("ios-icon.png") %>" />
3630
<% end %>
37-
31+
<link rel="shortcut icon" href="<%= asset_path("big_logo.png") %>" />
32+
<%= auto_discovery_link_tag(:rss,feed_topics_url,:title => '订阅最新帖') %>
33+
<%= javascript_include_tag "app", "data-turbolinks-track" => true %>
3834
<%= csrf_meta_tag %>
3935
<%= yield :node_feed_link %>
4036
<%= raw SiteConfig.custom_head_html %>

0 commit comments

Comments
 (0)