Reduce the size of redirects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Libravatar (obsolete) |
Fix Released
|
High
|
François Marier |
Bug Description
Given that we serve mostly redirects to Gravatar at the moment, we should optimise that path very carefully.
The 302 responses we send out unfortunately include a body that's just as large as the headers:
$ curl -i http://
Date: Wed, 21 Sep 2011 01:51:52 GMT
Server: Apache
Cache-Control: max-age=86400
Location: http://
Vary: Accept-Encoding
Content-Length: 310
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://
</body></html>
Maybe there is a way to override the default redirection template in Apache...
Changed in libravatar: | |
status: | Confirmed → Fix Committed |
Changed in libravatar: | |
status: | Fix Committed → Fix Released |
These might be useful:
http:// httpd.apache. org/docs/ 2.2/mod/ core.html# errordocument httpd.apache. org/docs/ 2.2/custom- error.html
http://