GZIP in ServiceServlet, how can it possibly work?

11 views
Skip to first unread message

Emanuele Ziglioli

unread,
May 23, 2012, 8:40:50 PM5/23/12
to Vosao CMS Development
Hi everyone,

I'm wondering how this code in ServiceServlet works:


if (bout.length > GZIP_THRESHOLD) {
byte[] gzippedOut = gzip(bout);
...
response.addHeader("Content-Encoding",
"gzip");

I've tried to do the same for some resources that I've stored as
gzipped entitied. I wanted to return them withour uncompressing them
first.
While it works on the development server, on the GAE servers, I get a
mangled response (I've seen someone else reporting that as a bug).
Plus GAE strips out the Content-Encoding header anyway:
http://code.google.com/p/googleappengine/issues/detail?id=1378&q=gzip&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

First, there's no need to gzip responses because GAE does that
already.
Second, as I observed, that doesn't work for me but obviously that
works for Vosao, and that's the confusing part....

Emanuele
Reply all
Reply to author
Forward
0 new messages