HTTP-header "Cache-Control: public" for images and stylesheets

Bug #223008 reported by Artem Popov
2
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)

Artem Popov (artfwo)
description: updated
Revision history for this message
Artem Popov (artfwo) wrote :

It looks like only the icons from the following screenshot are cached. HTTP headers example:

$ LANG=C wget -S https://edge.launchpad.net/@@/translation
--18:20:24-- https://edge.launchpad.net/@@/translation
           => `translation'
Resolving edge.launchpad.net... 91.189.90.244
Connecting to edge.launchpad.net|91.189.90.244|:443... connected.
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,max-age=86400
  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]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.