Mobile app version of vmapp.org
Login or Join
Nimeshi995

: Forced GZIP Detection on Google App Engine 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

@Nimeshi995

Posted in: #Cookie #GoogleAppEngine #Gzip

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sue5673885

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme