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.