git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitweb: Supporting caches (was: Adding a `blame' interface.)

From
FFFlorian Forster <octo@verplant.org>
Date
Jun 12, 2006, 17:57 UTC
Message-ID
<20060612175735.GA13432@verplant.org>
In-Reply-To
<Pine.LNX.4.64.0606120754460.5498@g5.osdl.org>
On Mon, Jun 12, 2006 at 07:59:39AM -0700, Linus Torvalds wrote:
> The apache setup at least on kernel.org is already set up to do
> caching, as long as the generated headers for the page allow it in the
> first place.

I've actually looked into improving native HTTP caching (mostly for small site without revers proxying) by providing a `Last-Modified' header where possible and sending a `304 Not Modified' whenever appropriate.

While it doesn't sound hard it's next to impossible: A commit's timestamp doesn't change when head a points to it (or does not longer point to it). Also displaying the timestamps as `Modified xy {seconds,minutes, hours,...} ago' possess a big problem.

(I guess the webserver could use the `If-Modified-Since' header to check if the displayed time needs to be updated, but if you ask me it's not worth the effort.)

In short, the `blob', `blob_plain', and `blobdiff' pages could profit from that because they don't display the head(s) pointing to the current commit. On the other hand, this is a little inconsistent and could be considered a bug. So I'll give up on that unless someone has a great idea how to handle this.

Regards, -octo

-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
Previous: Linus TorvaldsNext: Jon Loeliger
Message 11 of 19 in “gitweb: Adding a `blame' interface.”
  1. gitweb: Adding a `blame' interface.Florian Forster, Jun 11, 2006
  2. Martin LanghoffJun 11, 2006
  3. Florian ForsterJun 12, 2006
  4. gitweb: Make the availability of the `blame' interface in gitweb configurable.Florian Forster, Jun 12, 2006
  5. Martin LanghoffJun 12, 2006
  6. Shawn PearceJun 12, 2006
  7. Johannes SchindelinJun 12, 2006
  8. Shawn PearceJun 12, 2006
  9. Florian ForsterJun 12, 2006
  10. Linus TorvaldsJun 12, 2006
  11. Florian ForsterJun 12, 2006
  12. Jon LoeligerJun 12, 2006
  13. Junio C HamanoJun 14, 2006
  14. Fredrik KuivinenJun 12, 2006
  15. Johannes SchindelinJun 12, 2006
  16. Linus TorvaldsJun 12, 2006
  17. Johannes SchindelinJun 12, 2006
  18. Linus TorvaldsJun 12, 2006
  19. Marco CostalbaJun 15, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.