Skip to content

Commit

Permalink
[Admin] Disable Turbo Caching and Prefetching
Browse files Browse the repository at this point in the history
We don't want to deal with Turbo caching issues in the new admin.
The content a customer agent or product administrator should always be
the latest and most accurate version.

Prefetching is a performance nightmare for an admin interface like ours.

Co-authored-by: Eugene Chaikin <[email protected]>
  • Loading branch information
tvdeyen and chaimann committed Dec 23, 2024
1 parent 6b476d4 commit f566aa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin/app/views/layouts/solidus_admin/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

<title><%= solidus_admin_title %></title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache">
<meta name="turbo-prefetch" content="false">

<%= csrf_meta_tags %>
<%= csp_meta_tag %>

Expand Down

0 comments on commit f566aa1

Please sign in to comment.