Luismahou / grunt-hashres

Hashes your js and css files and rename the <script> and <link> declarations that refer to them in your html/php/etc files.
MIT License
115 stars 41 forks source link

Same Hashes for Multiple File #57

Closed realph closed 9 years ago

realph commented 9 years ago

When hashres is run, it sets unique hashes on all the files. Is it possible to have the same hash used on multiple files when I run hashres? Like so:

app.js?v=123
app.css?v=123 
vendor.css?v=123

Thanks!

Luismahou commented 9 years ago

Nope. The hash depends on the file contents, otherwise I cannot ensure cache would be invalidated properly.