HTTP-header "Cache-Control: public" for images and stylesheets
Bug #223008 reported by
Artem Popov
This bug report is a duplicate of:
Bug #46591: Serving everything under SSL causes slowdown.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
New
|
Undecided
|
Unassigned |
Bug Description
As the whole Launchpad website is used over an SSL connection, lots of traffic could be minimized if "Cache-Control: public" HTTP-header would be present for images, scripts, stylesheets and probably librarian files.
Firefox 3 already supports Cache-Control header, and other browsers (and proxy servers) do this as well, so it might be a very nice feature for slow connections, etc.
Current workaround for speeding-up Launchpad in Firefox is to enable caching of all SSL content, which is certainly a bad thing to do.
This bug also looks related to bug 5456 (Expires: header)
It looks like only the icons from the following screenshot are cached. HTTP headers example:
$ LANG=C wget -S https:/ /edge.launchpad .net/@@ /translation /edge.launchpad .net/@@ /translation net... 91.189.90.244 net|91. 189.90. 244|:443. .. connected. max-age= 86400
--18:20:24-- https:/
=> `translation'
Resolving edge.launchpad.
Connecting to edge.launchpad.
HTTP request sent, awaiting response...
HTTP/1.1 200 Ok
Date: Sun, 27 Apr 2008 11:20:22 GMT
Server: zope.server.http (HTTP)
X-Powered-By: Zope (www.zope.org), Python (www.python.org)
Last-Modified: Tue, 13 Feb 2007 10:00:38 GMT
Content-Length: 693
Cache-Control: public,
Expires: Mon, 28 Apr 2008 11:20:22 GMT
Content-Type: image/png
Via: 1.0 edge.launchpad.net
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Length: 693 [image/png]