From: Jakub Narebski <jnareb@gmail.com>
To: Robert Fitzsimons <robfitz@273k.net>
Cc: git@vger.kernel.org, Kernel Org Admin <ftpadmin@kernel.org>,
Petr Baudis <pasky@suse.cz>
Subject: Re: [RFC] gitweb wishlist and TODO list (part 1)
Date: Thu, 21 Dec 2006 10:18:20 +0100 [thread overview]
Message-ID: <200612211018.20796.jnareb@gmail.com> (raw)
In-Reply-To: <20061221032216.GF17864@localhost>
Robert Fitzsimons wrote:
>> * Cache validation and infinite cache for unchanging pages
>>
>> By itself cache validation would not bring much performance boost (for
>> gitweb installations with large traffic), but with the reverse proxy,
>> aka. caching engine, aka. HTTP accelerator in front of server this could
>> help a lot.
BTW in mod_perl cache validation is as simple as using meets_condition()
method on request object after we send at least one of validator
headers (Last-Modified:, ETag:)... but this would mean that cache
validation would be available only when under mod_perl...
> There is no need for extra servers to provide server side caching.
> Apache2 includes suitable modules (mod_cache) which can be configured to
> cache in memory or disk the pages generated by gitweb.
[...]
> mod_cache will only cache pages with a query string in the url if they
> have an expires header. So we can put a temporary hack in using
> mod_expires until gitweb sets an appropriate value.
>From the discussion in the
"Re: kernel.org mirroring (Re: [GIT PULL] MMC update)"
http://thread.gmane.org/gmane.comp.version-control.git/33604
thread Apache mod_cache doesn't bring much. Perhaps because of the above...
although adding artificial expires header seems a bit like a hack.
> Also the content type would need to be change to just return text/html
> or MSIE will do the wrong think if it's given a application/xhtml+xml
> page.
>From gitweb.perl:
# require explicit support from the UA if we are to send the page as
# 'application/xhtml+xml', otherwise send it as plain old 'text/html'.
# we have to do this because MSIE sometimes globs '*/*', pretending to
# support xhtml+xml but choking when it gets what it asked for.
This was added by Alp Toker <alp@atoker.com> in f6801d669ee11:
"gitweb: Send XHTML as 'application/xhtml+xml' where possible"
--
Jakub Narebski
Poland
prev parent reply other threads:[~2006-12-21 9:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-16 23:00 [RFC] gitweb wishlist and TODO list (part 1) Jakub Narebski
2006-12-17 1:47 ` Junio C Hamano
2006-12-21 3:22 ` Robert Fitzsimons
2006-12-21 9:18 ` Jakub Narebski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200612211018.20796.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=ftpadmin@kernel.org \
--cc=git@vger.kernel.org \
--cc=pasky@suse.cz \
--cc=robfitz@273k.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).