Node 8 Standard (Express) not gzipping content

107 views
Skip to first unread message

Steve G

unread,
Oct 29, 2018, 9:12:50 AM10/29/18
to Google App Engine
I have run into an issue where app engine standard is not gzipping responses.  It's a basic express universal application based on the docs at angular.io, with the addition of the compression middleware recommended by the express documentation.

It's a very simple Angular 7 universal project, which can been seen here.

If you open the network tab you'll notice none of the assets are gzipped.


Jason Collins

unread,
Oct 29, 2018, 5:03:47 PM10/29/18
to Google App Engine
Today, we are not passing through the `Accept-Encoding` header, so it is not possible for your middleware to decide that it should compress. 

We will roll out a fix for this in the new few weeks.

Attila-Mihaly Balazs

unread,
Oct 30, 2018, 4:13:16 AM10/30/18
to Google App Engine
Please also note that there are some weird rules around the Google Frontend gzipping / not gzipping the response - it doesn't always respect "Accept-Encoding", but rather does some user agent sniffing: https://cloud.google.com/appengine/docs/standard/python/how-requests-are-handled#response_compression

Attila

Steve G

unread,
Nov 16, 2018, 11:50:10 AM11/16/18
to Google App Engine
Thank you for the update, Jason.  I'll keep an eye on it.

Jason Collins

unread,
Nov 16, 2018, 3:32:05 PM11/16/18
to Google App Engine
Reply all
Reply to author
Forward
0 new messages