Google's documentation mentions that cdn can enable dynamic compression, and an example is provided below, but I can't successfully set the dynamic compression strategy
The error I see when I execute the command is as follows, is it changed to other flags?And from the log, the size of the transferred image is not compressed.
It looks like there are two problems. First, you appear to have an old version of gcloud that was released prior to the dynamic compression Beta. The right way to upgrade gcloud will depend on your platform, but it's typically
gcloud components update
orsudo apt-get upgrade google-cloud-sdk
.Once you have an up-to-date gcloud installation, you'll likely run into the second problem. Google's documentation incorrectly advises you to use
gcloud compute
, but you need to usegcloud beta compute
while the feature remains in Beta: