Enabling gzip in an appengine-flex service

40 views
Skip to first unread message

Vinay Chitlangia

unread,
Feb 7, 2019, 7:07:17 AM2/7/19
to Google App Engine
I am trying to enable gzip in our appengine-flex service.

The app.yaml has the following addition
env_variables:
JETTY_MODULES_ENABLE: 'gzip'

However for requests that we make using URLConnection from another appengine module (standard appengine), the responses are
not zipped. AFAICT the responses made from chrome are not zipped either.
The responses from our service are "text/plain".

We are using a custom runtime running java and jetty9. Here is the dockerfile.
Thanks for your help.

FROM gcr.io/google-appengine/jetty9

RUN apt-get -q update && \

    apt-get -y -q --no-install-recommends -t jessie-backports install openjdk-8-jdk && \

    apt-get -y -q --no-install-recommends install ssh sshpass netcat && \

    apt-get clean && \

    rm /var/lib/apt/lists/*_*

ADD backend.war $JETTY_BASE/webapps/root.war

WORKDIR $JETTY_BASE

RUN java -jar $JETTY_HOME/start.jar --approve-all-licenses \

 --add-to-startd=jmx,stats,hawtio,requestlog \

 -Djava.util.logging.config.file=src/main/appengine/logging.properties \

 && chown -R jetty:jetty $JETTY_BASE

Mohammad I (Cloud Platform Support)

unread,
Feb 8, 2019, 4:42:33 PM2/8/19
to Google App Engine

Hello Vinay,


Please kindly note that this forum is meant for general discussion of the App Engine platform, not specific technical issues.


The issue that you reported will require more detail inspection of your project and logs to find out the root cause, why you are not able to get zipped response. To resolve your issue, I have created a public issue which you can follow by going into the link and Google Cloud Support team member will assist you to resolve your issue. I have cc’ed you at the public issue so that you can receive updates.


For future if you believe that what you've encountered is platform specific issue you can report this by creating an issue in the Issue Tracker and Google Cloud Support team member will assist you to resolve your issue.  If your issue is not a platform issue but rather a problem with how you've configured your code, although you're not sure what it may be specifically, you should post to StackOverflow and community of developers will assist you.


Reply all
Reply to author
Forward
0 new messages