<% @page_title = @entry.title %>

<% content_for(:head) do %>
  <%= cache [@entry, :head] do %>
    <%= stylesheet_link_tag('pageflow/application', media: 'all', 'data-turbolinks-track' => true) %>
    <%= entry_theme_stylesheet_link_tag(@entry) %>
    <%= entry_stylesheet_link_tag(@entry) %>

    <%= social_share_meta_tags_for(@entry.share_target) %>
    <%= render_widget_head_fragments(@entry) %>

    <%= tag :link, :rel => 'icon', :href => image_path("pageflow/themes/#{@entry.theming.theme.directory_name}/favicon.ico"), :type => 'image/ico' %>
  <% end %>
<% end %>

<%= cache @entry do %>

  <%= render 'pageflow/entries/ie8_hint' %>
  <%= render 'pageflow/entries/loading_spinner' %>
  <%= render 'pageflow/entries/multimedia_alert' %>
  <%= render @entry %>

  <script>
    pageflow.manualStart.enabled = <%= @entry.manual_start ? 'true' : 'false' %>;
    pageflow.visited.enabled = <%= @entry.emphasize_new_pages ? 'true' : 'false' %>;
    pageflow.pages = <%= @entry.pages.to_json(:only => [:id, :perma_id, :configuration]).html_safe %>;
    pageflow.entryId = <%= @entry.id %>;
  </script>

  <%= render 'pageflow/entries/analytics', :entry => @entry %>
<% end %>

<% @page_title = @entry.title %>

<% content_for(:head) do %>
  <%= cache [@entry, :head, @entry.share_target] do %>
    <%= stylesheet_link_tag('pageflow/application', media: 'all', 'data-turbolinks-track' => true) %>
    <%= entry_theme_stylesheet_link_tag(@entry) %>
    <%= entry_stylesheet_link_tag(@entry) %>

    <%= social_share_meta_tags_for(@entry.share_target) %>
    <%= render_widget_head_fragments(@entry) %>

    <%= tag :link, :rel => 'icon', :href => image_path("pageflow/themes/#{@entry.theming.theme.directory_name}/favicon.ico"), :type => 'image/ico' %>
  <% end %>
<% end %>

<%= cache @entry do %>

  <%= render 'pageflow/entries/ie8_hint' %>
  <%= render 'pageflow/entries/loading_spinner' %>
  <%= render 'pageflow/entries/multimedia_alert' %>
  <%= render @entry %>

  <script>
    pageflow.manualStart.enabled = <%= @entry.manual_start ? 'true' : 'false' %>;
    pageflow.visited.enabled = <%= @entry.emphasize_new_pages ? 'true' : 'false' %>;
    pageflow.pages = <%= @entry.pages.to_json(:only => [:id, :perma_id, :configuration]).html_safe %>;
    pageflow.entryId = <%= @entry.id %>;
  </script>

  <%= render 'pageflow/entries/analytics', :entry => @entry %>
<% end %>

Include Share Target in Head Cache Key
Include Share Target in Head Cache Key

Otherwise page specific share headers are not rendered.
