-
Notifications
You must be signed in to change notification settings - Fork 29
Optimizing Caching
Drew Machat edited this page Aug 6, 2016
·
1 revision
When users hit the URL of your application they will need to download different assets. CSS, JavaScript, HTML, images and fonts. The great thing about Webpack is that you can stop thinking how you should download all these assets. You can do it through JavaScript.
OccurenceOrderPlugin
- Use
[hash]
. Example:'assets/bundle.[hash].js'
The benefit of this is that this will force the client to reload the file. There is more information about [hash]
at the long term caching section of the official documentation.
Is it possible to change the hash only if bundle changed?