posts/index: disable next page prefetching.
This causes the browser to prefetch the next page in a search, which may make browsing seem faster to the end user, but it effectively doubles the load on the server.
This commit is contained in:
@@ -71,7 +71,6 @@
|
|||||||
|
|
||||||
<% content_for(:html_header) do %>
|
<% content_for(:html_header) do %>
|
||||||
<%= tag.link href: posts_path(format: "atom", tags: params[:tags]), rel: "alternate", title: "ATOM", type: "application/atom+xml" %>
|
<%= tag.link href: posts_path(format: "atom", tags: params[:tags]), rel: "alternate", title: "ATOM", type: "application/atom+xml" %>
|
||||||
<%= tag.link rel: "prefetch", href: next_page_url, as: "html", crossorigin: "use-credentials" %>
|
|
||||||
<%= tag.link rel: "next", href: next_page_url %>
|
<%= tag.link rel: "next", href: next_page_url %>
|
||||||
<% if prev_page_url %>
|
<% if prev_page_url %>
|
||||||
<%= tag.link rel: "prev", href: prev_page_url %>
|
<%= tag.link rel: "prev", href: prev_page_url %>
|
||||||
|
|||||||
Reference in New Issue
Block a user