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

Allow the actual renaming of files to be optional #2

Closed raphaeleidus closed 12 years ago

raphaeleidus commented 12 years ago

a common form of cache busting is to append the hash to the file name like so: '${name}.${ext}?${hash}' with this method the server will serve up ${name}.${ext} no matter what comes after the ? if this format is used renaming the file isn't actually needed, just the substitutions in the out files.

additionally with smart rewrite rules formats like ${name}.cache.${hash}.${ext} can have the server serve up '${name}.${ext}`

this pull request implements this functionality

Luismahou commented 12 years ago

Hey, thanks for your pull request. Please, allow me some time to review it.