php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19911 caching problem
Submitted: 2002-10-14 19:59 UTC Modified: 2002-10-18 12:49 UTC
From: mammal at vol dot cz Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.2 OS: Linux RH8.0
Private report: No CVE-ID: None
 [2002-10-14 19:59 UTC] mammal at vol dot cz
I'm running redhat 8.0 with apache 2.0.40 and php 4.2.2
It seems that apache 2 replies to request for php-generated pages with 

304 Not-Modified 

when If-Modified-Since header is sent. Well, mostly. You need to hit reload on your browser to get it reloaded (no If-Modified-Since sent).

I guess sending 304 header should be handled manually in the script when needed, and not by Apache.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-14 20:10 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


and get the latest Apache2 release.

 [2002-10-15 13:26 UTC] mammal at vol dot cz
I tried the lastest STABLE snapshot 
php4-STABLE-200210150300 
and apache 2.0.43 
 
the same... maybe it's apache's fault but I don't know 
 
when I touch the script it works fine for a moment but it 
gets confused again. No problems with apache 1.3.
 [2002-10-15 23:01 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-10-16 08:04 UTC] mammal at vol dot cz
I just installed the latest snapshot, but I can't test it. 
I just displays highlighted php source instead of 
executing it.
 [2002-10-16 14:07 UTC] iliaa@php.net
Could you please show the lines pertaining to the PHP config inside httpd.conf
 [2002-10-16 15:24 UTC] mammal at vol dot cz
LoadModule php4_module modules/libphp4.so 
<Files *.php> 
    SetOutputFilter PHP 
    SetInputFilter PHP 
</Files> 
DirectoryIndex index.php
 [2002-10-16 15:46 UTC] iliaa@php.net
The bug with source displaying has been fixed (just commited to CVS), please try the latest snapshot and see if the original report about caching is still valid.
 [2002-10-17 11:56 UTC] mammal at vol dot cz
the same problem with the latest version... 
but I found out it has nothing to do with 
If-Modified-Since header. It's  
If-None-Match: "<ETag>" header.
 [2002-10-17 18:12 UTC] iliaa@php.net
This is a dupe of bug #17098. Let keep the discussion of this problem in one place.
 [2002-10-18 12:49 UTC] sniper@php.net
No need to keep this open.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC