cache wms.legend locally for offline use