If you want to automate the BLOB cache web.config file changes, you could refer this blog by using powershell. I’ve modified the powershell script published and applied all the settings discussed in my previous blog that could optimize the BLOB cache. Here are the additional changes applied based on previous discussion.
In addition, I’ve also ass another script to enable the cache on all webapps on the server to automate the process.
We are in the process to future improve the script so it could be run on one server but will execute on all WFE servers.