Skip to content

Commit

Permalink
append build revision to stylesheet path to break cache
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Dec 14, 2016
1 parent 87e09bc commit ffcddd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="{{ '/assets/js/script.js' | relative_url }}"></script>

Expand Down

1 comment on commit ffcddd3

@inwardmovement
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain me what is it for please? what does it mean "to break cache"?

Please sign in to comment.