Skip to content

Commit

Permalink
Disable Turbolinks caching
Browse files Browse the repository at this point in the history
Caching of Turbolinks visits causes more harm then benefits. For example we need to take care of tearing down all third party JS widgets (like select2, jQueryUI) on our own. Also lots of our JS is written in a way that it needs a fresh copy of the body to work with.
  • Loading branch information
tvdeyen committed Jun 8, 2017
1 parent 7254ed3 commit ba9fefb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/views/spree/admin/shared/_head.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta name="turbolinks-cache-control" content="no-cache">

<%= csrf_meta_tags %>

Expand Down

0 comments on commit ba9fefb

Please sign in to comment.