Re: More efficient thumbnail script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Curt Zirzow wrote:
> On 1/16/07, Jochem Maas <jochem@xxxxxxxxxxxxx> wrote:
>> ...
>>         if ($cacheState) {
>>             $headers = getallheaders();
>>             if (isset($headers['If-Modified-Since']) &&
>> ($headers['If-Modified-Since'] == $lastModified)) {
> 
> I was waiting for this to be mentioned...
> 
> I would use a more detailed approach: http://pastebin.ca/319054

could you clarify alittle? (beyond not using the apache specific getallheaders()
function - I chose to go that route because I never run on anything other than apache)

is the value of $headers['If-Modified-Since'] identical to
$_SERVER['HTTP_IF_MODIFIED_SINCE'] or *can* they differ (i.e. would
it be stupid to assume that apache 'normalized' the modidfied-since string?)

is my code borked or merely not covering a number of edge cases related
to older or more exotic browsers - my code does output 304 headers
at the right time AFAIHT.

but going by your code there could, it seems, be improvement ...
i'd like to understand what exactly the improvement is (would be) about.

tia & rgds,
Jochem


> 
> Curt.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux