Title: Content-Encoding: gzip missing from Google Cloud Storage Objects
Last modified: March 27, 2020

---

# Content-Encoding: gzip missing from Google Cloud Storage Objects

 *  [Jesus Iniesta](https://wordpress.org/support/users/jesusinica/)
 * (@jesusinica)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/content-encoding-gzip-missing-from-google-cloud-storage-objects/)
 * When I upload files, such as SVG files, they’re stored compressed, but the file
   metadata in Google Cloud Storage shows Content-Encoding empty, which makes them
   unavailable.
 * When accessing the SVG file from my browser I get:
 *     ```
       This page contains the following errors:
       error on line 1 at column 1: Encoding error
       Below is a rendering of the page up to the first error.
       ```
   
 * However, if I edit the metadata manually from Google Cloud Storage interface,
   setting Content-Encoding to gzip, then I get the file correctly.
 * Have tried a few things, but can’t find a way to store them with the correct 
   metadata, or to edit it from WordPress afterwards.
    -  This topic was modified 6 years, 2 months ago by [Jesus Iniesta](https://wordpress.org/support/users/jesusinica/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [ianmjones](https://wordpress.org/support/users/ianmjones/)
 * (@ianmjones)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-gzip-missing-from-google-cloud-storage-objects/#post-12688403)
 * That’s weird, WP Offload Media explicitly sets that Content-Encoding metadata.
 * Maybe best to just not allow WP Offload Media to gzip the file…
 *     ```
       function my_disable_as3cf_gzip_mime_types( $mime_types, $media_library ) {
           return array();
       }
   
       add_filter( 'as3cf_gzip_mime_types', 'my_disable_as3cf_gzip_mime_types', 10, 2 );
       ```
   
 * We’re thinking about taking out this functionality as most bucket / CDN providers
   do their own gzip stuff these days.

Viewing 1 replies (of 1 total)

The topic ‘Content-Encoding: gzip missing from Google Cloud Storage Objects’ is 
closed to new replies.

 * ![](https://ps.w.org/amazon-s3-and-cloudfront/assets/icon-256x256.jpg?rev=1809890)
 * [WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-s3-and-cloudfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/reviews/)

## Tags

 * [Cloud storage](https://wordpress.org/support/topic-tag/cloud-storage/)
 * [content encoding](https://wordpress.org/support/topic-tag/content-encoding/)
 * [encoding](https://wordpress.org/support/topic-tag/encoding/)
 * [google cloud storage](https://wordpress.org/support/topic-tag/google-cloud-storage/)
 * [metadata](https://wordpress.org/support/topic-tag/metadata/)
 * [offload](https://wordpress.org/support/topic-tag/offload/)

 * 1 reply
 * 2 participants
 * Last reply from: [ianmjones](https://wordpress.org/support/users/ianmjones/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-gzip-missing-from-google-cloud-storage-objects/#post-12688403)
 * Status: not resolved