Add cache buster to bundle.js
This commit is contained in:
parent
ffcdb8b697
commit
2afbf6a136
1 changed files with 4 additions and 2 deletions
6
html.js
6
html.js
|
|
@ -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>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue