This plugin hardcodes a :latest tag and assumes that tags can be overwritten. For some registries, this is not allowed and only immutable tags are permitted.
Could the plugin support configuring the tag that is used instead of always using :latest? Then users trying to use this cache plugin with a registry with immutable tags can add in logic to generate the tag.