Skip to content

Commit

Permalink
Merge pull request #2943 from sascha-karnatz/disable-turbo-cache-in-a…
Browse files Browse the repository at this point in the history
…dmin

Disable Turbo Cache in Admin
  • Loading branch information
tvdeyen authored Jun 27, 2024
2 parents 2bff8bd + c616844 commit 0133ea7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions app/views/alchemy/admin/pages/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@
</div>
<% end %>

<% content_for :javascript_includes do %>
<meta name="turbo-cache-control" content="no-cache">
<% end %>

<iframe
url="<%= @preview_url %>"
id="alchemy_preview_window"
Expand Down
4 changes: 0 additions & 4 deletions app/views/alchemy/admin/pages/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<% content_for :javascript_includes do %>
<meta name="turbo-cache-control" content="no-cache">
<% end %>

<% content_for :toolbar do %>
<%= render "alchemy/admin/pages/toolbar" %>
<% end %>
Expand Down
4 changes: 0 additions & 4 deletions app/views/alchemy/admin/styleguide/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
<%= "Styleguide" %>
<% end %>

<% content_for :javascript_includes do %>
<meta name="turbo-cache-control" content="no-cache">
<% end %>

<% content_for(:toolbar) do %>
<%= render Alchemy::Admin::ToolbarButton.new(
icon: :info,
Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/alchemy/admin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<meta name="robots" content="noindex">
<meta name="alchemy-icon-sprite" content="<%= asset_path("remixicon.symbol.svg") %>">
<meta name="turbo-prefetch" content="false">
<meta name="turbo-cache-control" content="no-cache">
<%= stylesheet_link_tag('alchemy/admin', media: 'screen', 'data-turbo-track' => true) %>
<%= stylesheet_link_tag('alchemy/admin/print', media: 'print', 'data-turbo-track' => true) %>
<%= yield :stylesheets %>
Expand Down

0 comments on commit 0133ea7

Please sign in to comment.