Re: [PHP] 304 Not Modified header not working within a class

2010-01-23 Thread Camilo Sperberg
Problem solved!!! Everything was working ok with PHP. My class was working ok. The engineering and logic behind PHP was working. So... what was the problem? Apache... well, it wasn't a problem, but a misconfiguration or better said, a mis-optimization. In my first message, I stated: (quote) >

Re: [PHP] 304 Not Modified header not working within a class

2010-01-20 Thread Camilo Sperberg
On Wed, Jan 20, 2010 at 04:34, richard gray wrote: > > Camilo Sperberg wrote: > >> Hi list, my first message here :) >> >> To the point: I'm programming a class that takes several CSS files, >> parses, >> compresses and saves into a cache file. However, I would like to go a step >> further and al

Re: [PHP] 304 Not Modified header not working within a class

2010-01-19 Thread richard gray
Camilo Sperberg wrote: Hi list, my first message here :) To the point: I'm programming a class that takes several CSS files, parses, compresses and saves into a cache file. However, I would like to go a step further and also use the browser cache, handling the 304 and 200 header types myself.

Re: [PHP] 304 Not Modified header not working within a class

2010-01-19 Thread Rene Veerman
ok, you might wanna re-ask on an apache list in that case.. On Wed, Jan 20, 2010 at 6:48 AM, Camilo Sperberg wrote: > > > On Wed, Jan 20, 2010 at 02:33, Rene Veerman wrote: >> >> if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) AND >> strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified)

Re: [PHP] 304 Not Modified header not working within a class

2010-01-19 Thread Camilo Sperberg
On Wed, Jan 20, 2010 at 02:33, Rene Veerman wrote: > if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) AND > strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified) { > > > shouldn't that be > > strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $last_modified) > > ? > Now that I think about

[PHP] 304 Not Modified header not working within a class

2010-01-16 Thread Camilo Sperberg
Hi list, my first message here :) To the point: I'm programming a class that takes several CSS files, parses, compresses and saves into a cache file. However, I would like to go a step further and also use the browser cache, handling the 304 and 200 header types myself. Now, what is the problem?

Re: [PHP] 304 Not Modified

2001-09-06 Thread Christian Reiniger
On Thursday 06 September 2001 12:28, [EMAIL PROTECTED] wrote: > The problem is that PHP has to generate the Last-Modified header, so it > can't send only the "HTTP/1.0 304 not modified", that is what I want. You send the Last-Modified on the requests where you *do* send a page back (i.e. those n

Re: [PHP] 304 Not Modified

2001-09-06 Thread [EMAIL PROTECTED]
u for your help. > -- Initial message --- > > From: Christian Reiniger <[EMAIL PROTECTED]> > To : "Ouster" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Cc : > Date : Thu, 6 Sep 2001 11:53:50 +0200 > Subject : Re: [PHP] 304 Not

Re: [PHP] 304 Not Modified

2001-09-06 Thread Christian Reiniger
On Wednesday 05 September 2001 21:22, Ouster wrote: > I'm making a sort of cache system. I fell to this problem: I leave a > cookie with the timestamp of the last access, and when the user > reconnect, I compare the timestamp of the last change with the > timestamp sent me with the cookie. Then I

[PHP] R: [PHP] 304 Not Modified

2001-09-05 Thread Ermanno Iannacci
Unfortunately it's only wrong typing. That problem's here to stay. - Original Message - From: Seb Frost <[EMAIL PROTECTED]> To: Ouster <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 9:38 PM Subject: RE: [PHP] 304 Not Modified &g

Re: [PHP] 304 Not Modified

2001-09-05 Thread Chris Hobbs
Ouster wrote: >header("304 Not Modified); > Looking at the docs (I know, silly, eh?), the correct form of this appears to be: header ("HTTP/1.0 304 Not Modified"); In addition to the missing " as was already pointed out... Chris Hobbs Silver Valley Unified School District -- PHP Gen

RE: [PHP] 304 Not Modified

2001-09-05 Thread Seb Frost
You don't think your missing " might have soemthing to do with it? Or maybe it's not that simple at all. - seb -Original Message- From: Ouster [mailto:[EMAIL PROTECTED]] Sent: 05 September 2001 20:23 To: [EMAIL PROTECTED] Subject: [PHP] 304 Not Modified I'm ma

[PHP] 304 Not Modified

2001-09-05 Thread Ouster
I'm making a sort of cache system. I fell to this problem: I leave a cookie with the timestamp of the last access, and when the user reconnect, I compare the timestamp of the last change with the timestamp sent me with the cookie. Then I leave a new cookie. So: if($last_modified <= $last_access)