Implement "Immutable build artifacts" feature (#745)
* Write BUILD_ID when building. It's a random id (uuid.v4()) * Add buildId to the core JS files. * Add immutable cache-control header. Only if the buildId is matched. * Set '-' as the dev buildId always. * Add buildId handling for JSON pages.
Showing
| ... | @@ -76,6 +76,7 @@ | ... | @@ -76,6 +76,7 @@ |
| "strip-ansi": "3.0.1", | "strip-ansi": "3.0.1", | ||
| "styled-jsx": "0.4.1", | "styled-jsx": "0.4.1", | ||
| "url": "0.11.0", | "url": "0.11.0", | ||
| "uuid": "3.0.1", | |||
| "webpack": "2.2.0-rc.3", | "webpack": "2.2.0-rc.3", | ||
| "webpack-dev-middleware": "1.9.0", | "webpack-dev-middleware": "1.9.0", | ||
| "webpack-hot-middleware": "2.15.0", | "webpack-hot-middleware": "2.15.0", | ||
| ... | ... |
Please
register
or
sign in
to comment