Turbolinks styling issue Demo

It demonstrates the issue about 'cached styles' when doing turbolinks navigations:

Only page 'two' has css styling on the header section for buttons.

On first render of 'index' or page 'one': the button appears unstyled (as it should).

After visiting page 'two', that has a snippet in the header to style buttons, any other turbolinks visit will keep the style on the header, so all other pages have pink buttons, even though when they are first loaded (not turbolinks visited) the buttons are unstyled.

  1. Page one
  2. Page two

Some button, that is NOT styled on 'index' or page 'one'. Only on page 'two': Should not be pink.

Note: I added the style tag directly on the header for simplicity, but importing a file (link[href='xx'], script[src='yy']) presents the same issue.