Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Feature/cache busting #118

Merged
merged 3 commits into from
May 6, 2015
Merged

Conversation

jmcarp
Copy link
Contributor

@jmcarp jmcarp commented May 2, 2015

This patch appends content hashes to the file names of compiled scripts
and styles to support cache busting. The mapping between original file
names (e.g. app.js) and built file names (e.g. app-c46010.js) is
stored in rev-manifest.json; the app reads the manifest file to insert
the most recent asset URLs into the HTML. When running in debug mode,
the app will restart whenever rev-manifest.json changes, so that the
developer always sees the most recent versions of the built assets.

All commands in package.json work as before; use npm run watch-all
for local development.

NB: The related issue isn't part of the current sprint, but I needed something to do with my Saturday afternoon 😃. More seriously, I think this is an important fix to get out before the site gets into users' hands--without it, any changes to the javascript or css that we make after users load the app will potentially break their experience until they clear their browser cache.

[Resolves #672]

jmcarp added 2 commits May 2, 2015 16:03
This patch appends content hashes to the file names of compiled scripts
and styles to support cache busting. The mapping between original file
names (e.g. `app.js`) and built file names (e.g. `app-c46010.js`) is
stored in `rev-manifest.json`; the app reads the manifest file to insert
the most recent asset URLs into the HTML. When running in debug mode,
the app will restart whenever `rev-manifest.json` changes, so that the
developer always sees the most recent versions of the built assets.

All commands in `package.json` work as before; use `npm run watch-all`
for local development.

[Resolves fecgov#672]
msecret pushed a commit that referenced this pull request May 6, 2015
@msecret msecret merged commit 4941088 into fecgov:develop May 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review casing on candidate pages
4 participants