Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.