Skip to contentSkip to conversation

Gitweb - caching

DISCUSSION J.H. 4 participants 4 messages Jun 15, 2016

lore
Share & tools
lore

J.H.

author
#0 lore raw

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'

#1 lore raw
Quoted 1 line

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

#2 lore raw
Quoted 4 lines · Robert Fitzsimons
Quoted 1 line

Thoughts or comments are welcome.

Interesting work, John. Some initial comments:

Quoted 8 lines

* 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

#3 lore raw
In reply to Robert Fitzsimons
Quoted 1 line · Robert Fitzsimons

* 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.

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git