Google Page Speed Optimizer Compatibility with Magento 2 Remote Storage

Google Page Speed Optimizer Compatibility with Magento 2 Remote Storage

The Google Page Speed Optimizer for Magento 2 is compatible with Magento’s native Remote Storage functionality, including storage services such as Amazon Web Services S3.

This is the official guide on the remote storage configuration for Magento 2: Magento 2 | Configure Remote Storage

How Image Optimization Works with Remote Storage:

      1. The extension detects that Magento Remote Storage is enabled.
      2. The image to optimize is temporarily copied from remote storage to the local file system.
      3. The extension optimizes the local temporary copy.
      4. The optimized image is uploaded back to remote storage.

The temporary local files are automatically removed after the operation is completed.

This approach allows the extension to optimize remotely stored images without permanently populating the local pub/media directory.