From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Narebski Subject: Re: [RFC] gitweb wishlist and TODO list (part 1) Date: Thu, 21 Dec 2006 10:18:20 +0100 Message-ID: <200612211018.20796.jnareb@gmail.com> References: <200612170000.06771.jnareb@gmail.com> <20061221032216.GF17864@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: git@vger.kernel.org, Kernel Org Admin , Petr Baudis X-From: git-owner@vger.kernel.org Thu Dec 21 10:16:27 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by dough.gmane.org with esmtp (Exim 4.50) id 1GxK2G-0003cO-Dg for gcvg-git@gmane.org; Thu, 21 Dec 2006 10:16:20 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161180AbWLUJQB (ORCPT ); Thu, 21 Dec 2006 04:16:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161175AbWLUJQA (ORCPT ); Thu, 21 Dec 2006 04:16:00 -0500 Received: from ug-out-1314.google.com ([66.249.92.171]:17858 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422899AbWLUJPo convert rfc822-to-8bit (ORCPT ); Thu, 21 Dec 2006 04:15:44 -0500 Received: by ug-out-1314.google.com with SMTP id 44so2557002uga for ; Thu, 21 Dec 2006 01:15:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=HrFsA2f0FDMZls34AMaXyWcNf1ZYsLNqXDz7HcVBh95O3LkIL/MYn8y3nL/R23TukYyTwsqMcWbP9GV4VHzbFECYOCWUOUumE2vhmt8nj9jk2RYM7f6B1OohdiwR9gHVyfxhDyCx3VI8I00sLkFaKw/i6FVIzx+ItSu9OqXCZws= Received: by 10.67.19.17 with SMTP id w17mr11976583ugi.1166692542859; Thu, 21 Dec 2006 01:15:42 -0800 (PST) Received: from host-81-190-25-107.torun.mm.pl ( [81.190.25.107]) by mx.google.com with ESMTP id 53sm13593876ugn.2006.12.21.01.15.42; Thu, 21 Dec 2006 01:15:42 -0800 (PST) To: Robert Fitzsimons User-Agent: KMail/1.9.3 In-Reply-To: <20061221032216.GF17864@localhost> Content-Disposition: inline Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: 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 in f6801d669ee11: "gitweb: Send XHTML as 'application/xhtml+xml' where possible" -- Jakub Narebski Poland