You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/06/06 21:22:09 UTC

DO NOT REPLY [Bug 9673] New: - Using Apache2 with dynamic PHP pages leads to Cache problems due to improper If-Last-Modified answer (304 Not Modified)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9673>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9673

Using Apache2 with dynamic PHP pages leads to Cache problems due to improper If-Last-Modified answer (304 Not Modified)

           Summary: Using Apache2 with dynamic PHP pages leads to Cache
                    problems due to improper If-Last-Modified answer (304
                    Not Modified)
           Product: Apache httpd-2.0
           Version: 2.0.36
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ck-bugzilla@newsclub.de


Apache2 does not pay attention to dynamic PHP scripts configured by  
SetInputFilter/SetOutputFilter PHP, as it still checks the modification  
date of the plain .php file.  
  
This leads to caching problems, when the user's browser sends a  
"If-Last-Modified" request. Apache returns "304 Not Modified", as the 
PHP file itself has not changed, although the dynamic content may have 
changed! 
 
The problem is in modules/http/http_protocol.c, line 386+ 
Hotfix: I have commented out line 393 (return HTTP_NOT_MODIFIED), so that this 
feature is totally disabled. 
 
Is there a chance to check for an Input/OutputFilter set? That way, we could 
deactivate the feature for PHP pages only.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org