Re: generate an etag header that apache can subsequently use, how?

From: Date: Sat, 23 Jun 2007 09:52:39 +0000
Subject: Re: generate an etag header that apache can subsequently use, how?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-257696@lists.php.net to get a copy of this message
Jochem Maas wrote:
but ... I need more speed ...
Don't we all? Try these: 1. stat() is slow, try not to use it 2. Don't pass images through PHP if at all possible 3. Get Fiddler (www.fiddlertool.com) - It will let you see the HTTP response headers. It will show what's actually being requested from you server. Typically, images are cached by the user agent , whereas PHP files are not. 4. Don't use mod_rewrite if at all possible 5. Recompile Apache with just the modules you need 6. Recompile PHP with just the stuff you need NB: You can always recompile later if your needs change 7. Don't use off the shelf components when you don't need to. PEAR::DB is one example - I was using this but then mimicked the API saving 50k of code. Quite significant if you're not using an accelerator. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software

« previous php.general (#257696) next »