Add cache buster to bundle.js

This commit is contained in:
Kyle Mathews 2016-05-07 22:15:42 -07:00
parent ffcdb8b697
commit 2afbf6a136

View file

@ -1,7 +1,9 @@
import React from 'react' import React from 'react'
import DocumentTitle from 'react-document-title' import DocumentTitle from 'react-document-title'
import { prefixLink } from 'gatsby-helpers' import { prefixLink } from 'gatsby-helpers'
const TypographyStyle = require('utils/typography').TypographyStyle import { TypographyStyle } from 'utils/typography'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({ module.exports = React.createClass({
displayName: 'HTML', displayName: 'HTML',
@ -32,7 +34,7 @@ module.exports = React.createClass({
</head> </head>
<body className="landing-page"> <body className="landing-page">
<div id="react-mount" dangerouslySetInnerHTML={{ __html: body }} /> <div id="react-mount" dangerouslySetInnerHTML={{ __html: body }} />
<script src={prefixLink('/bundle.js')} /> <script src={prefixLink(`/bundle.js?t=${BUILD_TIME}`)} />
</body> </body>
</html> </html>
) )