Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put a cachebuster in the names of CSS and JS files #2515

Merged
merged 3 commits into from
Oct 26, 2016
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Oct 26, 2016

This means that clients can do better caching of assets, as it will mean we are
no longer reliant on etags to ensure that clients get a fresh version.

We inhibit the cachebuster for npm start, so that we don't get millions of
copies of the bundles on dev boxes.

This means that clients can do better caching of assets, as it will mean we are
no longer reliant on etags to ensure that clients get a fresh version.

We inhibit the cachebuster for `npm start`, so that we don't get millions of
copies of the bundles on dev boxes.

new HtmlWebpackPlugin({
template: './src/vector/index.html',
inject: false, // we inject the links ourselves via the template
Copy link
Member

Choose a reason for hiding this comment

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

Why?

Copy link
Member Author

Choose a reason for hiding this comment

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

because HtmlWebpackPlugin wants to put the script tags either in or at the end of , and I was a bit scared about moving it.

@dbkr
Copy link
Member

dbkr commented Oct 26, 2016

Otherwise lgtm

@richvdh
Copy link
Member Author

richvdh commented Oct 26, 2016

(please don't merge this to develop yet)

@dbkr dbkr assigned richvdh and unassigned dbkr Oct 26, 2016
@richvdh richvdh assigned dbkr and unassigned richvdh Oct 26, 2016
@richvdh richvdh assigned richvdh and unassigned dbkr Oct 26, 2016
@richvdh richvdh merged commit b174d49 into develop Oct 26, 2016
richvdh added a commit to matrix-org/matrix-react-sdk that referenced this pull request Oct 26, 2016
Looks like the cachebuster stuff in
element-hq/element-web#2515 broke room tinting. Add a
fix, along with some ranting.
@richvdh richvdh deleted the rav/cache_busting branch November 30, 2016 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants