Browse files


  • Loading branch information...
1 parent f0213d4 commit 9ddec25afeaa02a0c90f91492a0304bbb4bd4b96 @dhh dhh committed Dec 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -52,7 +52,7 @@ Asset change detection
You can track certain assets, like application.js and application.css, that you want to ensure are always of the latest version inside a Turbolinks session. This is done by marking those asset links with data-turbolinks-track, like so:
- <link href="/assets/application.css?9bd64a86adb3cd9ab3b16e9dca67a33a.css" media="screen" rel="stylesheet" type="text/css" data-turbolinks-track>
+```<link href="/assets/application-9bd64a86adb3cd9ab3b16e9dca67a33a.css" media="screen" rel="stylesheet" type="text/css" data-turbolinks-track>```
If those assets change URLs (embed an md5 stamp to ensure this), the page will do a full reload instead of going through Turbolinks. This ensures that all Turbolinks sessions will always be running off your latest JavaScript and CSS.

0 comments on commit 9ddec25

Please sign in to comment.