Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3455898
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:40:13+00:00 2026-05-18T09:40:13+00:00

Having worked with Django , I’ve seen that people tend to reccommend the use

  • 0

Having worked with Django, I’ve seen that people tend to reccommend the use of GZIP Middleware to compress HTML pages.

However, the WSGI v1.0 specification tells us:

(Note: applications and middleware must not apply any kind of Transfer-Encoding to their output, such as chunking or gzipping; as “hop-by-hop” operations, these encodings are the province of the actual web server/gateway. See Other HTTP Features below, for more details.)

This suggests that compression should be left to the server/gateway. Which makes sense, as the server is probably much faster in doing that. Also, it might prefer SDCH over gzip, as most modern Chrome/Chromium browsers support it.

So my question remains, should I use a middleware to compress my responses or not? Specifically, what is the right choice for Google App Engine?

EDIT:

The Pylons Book also contains an example gzip middleware.

I didn’t mention that my framework of choice is Pyramid (ex-repoze.bfg).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:40:14+00:00Added an answer on May 18, 2026 at 9:40 am

    App Engine already does compress the content, if the client supports it.

    If the client sends HTTP headers with
    the request indicating that the client
    can accept compressed (gzipped)
    content, App Engine compresses the
    response data automatically and
    attaches the appropriate response
    headers. It uses both the
    Accept-Encoding and User-Agent request
    headers to determine if the client can
    reliably receive compressed responses.
    Custom clients can force content to be
    compressed by specifying both
    Accept-Encoding and User-Agent headers
    with a value of “gzip”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having mostly worked with C#, I tend to think in terms of C# features
I'm attempting to use mysql after only having worked with sqlite in the past.
I'm having issues with code that worked fine in PHP 5.3 and is now
I am having some issues when using mod_jk with Spring Security that has worked
I'm having an issue that apparently many people have had as well, only what
After having worked in MVC for a few months, I'm back in a previously
My C++ is a little rusty having worked in Java and C# for the
I have acquired the habit of declaring reused variables outside loops from having worked
I've been having trouble re-establishing my build environment. It's worked fine in the past,
I am a web developer, have worked with PHP and .NET both. having over

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.