threads / discuss / 6177

Gitweb - caching

Subject: Gitweb - caching

## tl;dr

4 messages between Dec 31, 2006 and Dec 31, 2006.

replies: 3people: 4as markdown or json

J.H.· Dec 31, 2006, 10:30 UTC · lore

There has been some recent discussion concerning the amount of resources that gitweb is chewing through, particularly on kernel.org. I've just pushed a small set of changes out to kernel.org that add in caching to the gitweb thats running on it. Changes are published at git://git.kernel.org/pub/scm/git/warthog9/gitweb.git

Thoughts or comments are welcome.
- John 'Warthog9'
Robert Fitzsimons· Dec 31, 2006, 17:41 UTC · re: J.H. · lore

Re: Gitweb - caching

> Thoughts or comments are welcome.
Interesting work, John.  Some initial comments:
* It's a very intrusive set of changes.
* An infinite expiry date isn't valid for all pages.
* The other HTTP headers can change depending on the page returned.
* A single cache directory is going to have problems as the number of
  cached files grows.

What are the benefits of doing this inside of gitweb instead of using something like mod_cache or mod_perl handlers?

Robert
Jeff Garzik· Dec 31, 2006, 20:01 UTC · re: Robert Fitzsimons · lore

Re: Gitweb - caching

Robert Fitzsimons wrote:
Show 12 quoted lines
>> Thoughts or comments are welcome.
> 
> Interesting work, John.  Some initial comments:
> 
> * It's a very intrusive set of changes.
> * An infinite expiry date isn't valid for all pages.
> * The other HTTP headers can change depending on the page returned.
> * A single cache directory is going to have problems as the number of
>   cached files grows.
> 
> What are the benefits of doing this inside of gitweb instead of using
> something like mod_cache or mod_perl handlers?

Or wrapping the gitweb output inside cgicache: http://linux.yyz.us/projects.html

	Jeff
Jakub Narebski· Dec 31, 2006, 20:52 UTC · re: Robert Fitzsimons · lore

Re: Gitweb - caching

Robert Fitzsimons wrote:
> * An infinite expiry date isn't valid for all pages.

An infinite expiry date is not valid at all. IIRC HTTP defines that "infinite" expiry is one year.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

← back to recent threads