Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Some clients are appearing on our Google App Engine instances without the Accept-Encoding header. We normally use the set a cookie with an appended iframe technique (or variation thereof) to detect these and send the correct gzipped content.

As Google App Engine does not let you control server side gzip, especially on static content, is there a specific cookie value to set which will force compression?

share|improve this question
up vote 2 down vote accepted

My gut says no. Servers only send gzipped content when they receive the correct Accept-Encoding header from the browser. The header itself is not part of the cookie sent by the browser and so you will not be able to modify it. Servers do this to prevent sending a compressed file to a browser that doesn't support it and thus preventing the page from displaying correctly.

Alternately you could do what it sounds like you already are doing and force it with server side code.

share|improve this answer
You're right. Now with the blobstore acting like a static server, there's no excuse not to upload the original/gzipped files and abandon traditional static files. – Metalshark Sep 8 '10 at 18:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.