Add headers as optional argument to CacheInvalidator

fix #117