Browse files


  • Loading branch information...
1 parent 9ddec25 commit e98fb06b44e90dac544b1aef2c5db81f56acbd2a @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-9bd64a86adb3cd9ab3b16e9dca67a33a.css" media="screen" rel="stylesheet" type="text/css" data-turbolinks-track>```
+```<link href="/assets/application-9bd64a86adb3cd9ab3b16e9dca67a33a.css" 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 e98fb06

Please sign in to comment.