Does gzip work on the development server?
Does gzip work on the python development server for appengine? How can I test this in the future?
Note: I've used Firebug to look at my HTTP requests from the browser, and I se开发者_高级运维e that Accept-Encoding is set to "gzip,deflate".
to see if the server responds with gzip encoded headers look for
Content-Encoding:gzip
in the response headers
€: found this in their faq
Google App Engine does its best to serve gzipped content to browsers that support it. Taking advantage of this scheme is automatic and requires no modifications to applications.
We use a combination of request headers (Accept-Encoding, User-Agent) and response headers (Content-Type) to determine whether or not the end-user can take advantage of gzipped content. This approach avoids some well-known bugs with gzipped content in popular browsers. To force gzipped content to be served, clients may supply 'gzip' as the value of both the Accept-Encoding and User-Agent request headers. Content will never be gzipped if no Accept-Encoding header is present.
精彩评论