mariusbalcytis / webpack-bundle

Bundle to Integrate Webpack into Symfony
MIT License
122 stars 36 forks source link

Hash mess in compiled file names, using timestamps for cache busting #41

Closed steven-pribilinskiy closed 7 years ago

steven-pribilinskiy commented 7 years ago

We still use assetic as our main compiler and the file names in compiled dir is clean, except when file masks are used to import multiple files at once, e.g. */*/*/*.js.

Now when we enter the compiled dir or look at the Network tab in Chrome or look at the console errors, stack trace, the file names now look messy. I've also noticed duplicate compiled files with different hash strings.

What do you think about an option to use modification timestamp for cache busting instead of hashes.

What are the advantages of using hash instead of e.g. appending product version ?v4.44 (that we currently use with assetic)?