PaulTondeur / grunt-cache-busting

Cache busting files and updating references
8 stars 13 forks source link

Cache cleanup #1

Closed mackenco closed 10 years ago

mackenco commented 10 years ago

Is there a way for the cache bust to clean up after itself (i.e. delete the previously hashed file?).

PaulTondeur commented 10 years ago

This grunt task is just for creating a cache busted file and updating your html files to reference the correct ones. Cleaning up before or after a build is something you should configure yourself and is not something I would consider to be the responsibility of this task.

The easiest way to get this done by yourself is making a build to a special folder and remove and recreate this folder as part of your build process.

Good luck!