Make Moin more friendly to HTTP

Http provides many features which can help ease the load to intermediaries: keep-alive and caching being among the most obvious. Moin is (as of verison 1.9.2) not able to leverage them to the max, at least not on Apache with mod_wsgi. Some obvious steps Moin should do are: To enable keepalive:

  1. set the Content-Length HTTP header on responses
  2. Do not send Connection: close HTTP header

To enable caching

  1. Set an Expires: HTTP header or at least a Last-Modified: header on responses

The first two steps are probably trickier, as they require to cache the whole response before sending headers out.

Steps to reproduce

  1. Run Moin on Apache/mod_wsgi

Example

Component selection

Details

Seen on http://wiki.squid-cache.org/

MoinMoin Version

1.9.2

OS and Version

All, I presume

Python Version

2.4

Server Setup

Apache/2.2.3 with mod_wsgi/2.1

Server Details

Apache/2.2.3 on CentOs with Squid 3.1.0.17 rproxy in front

Language you are using the wiki in (set in the browser/UserPreferences)

en

Workaround

This is an enhancement.

Discussion

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/HttpFriendliness (last edited 2010-03-04 17:10:32 by fw-pool-128)