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 r...@richgray.com 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

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 rene7...@gmail.com 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

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 unrea...@gmail.com wrote: On Wed, Jan 20, 2010 at 02:33, Rene Veerman rene7...@gmail.com wrote: if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) AND

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

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

Re: [PHP] 304 Not Modified

2001-09-06 Thread [EMAIL PROTECTED]
. -- 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 Modified On Wednesday 05 September 2001 21:22, Ouster wrote: I'm making

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 not

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 making a sort of cache

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 General