Skip to content

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

Merged
richvdh merged 3 commits intodevelopfrom
rav/cache_busting
Oct 26, 2016
Merged

Put a cachebuster in the names of CSS and JS files#2515
richvdh merged 3 commits intodevelopfrom
rav/cache_busting

Conversation

@richvdh
Copy link
Copy Markdown
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.
Comment thread webpack.config.js Outdated

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

Choose a reason for hiding this comment

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

Why?

Copy link
Copy Markdown
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
Copy Markdown
Member

dbkr commented Oct 26, 2016

Otherwise lgtm

@richvdh
Copy link
Copy Markdown
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