Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18445 - PHP and Apache 2 caching problems with If-Modified-Since header
Summary: PHP and Apache 2 caching problems with If-Modified-Since header
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PHP Bugs
URL: http://bugs.php.net/bug.php?id=17098
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-29 15:40 UTC by Tomasz Sterna
Modified: 2003-09-26 17:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Sterna 2003-03-29 15:40:27 UTC
Apache 2 now correctly handles If-Modified-Since browser header.
PHP still lacks API support for it and it creates a lot of problems with
browsers using the If-Modified-Since header requests.
The correct fix (patch) and a temporary fix (.conf hack) is available here:
http://bugs.php.net/bug.php?id=17098
May I suggest including the patch, or modifying the
/etc/apache2/conf/modules.d/70_mod_php.conf to:
<IfDefine PHP4>
  <IfModule !mod_php4.c>
    LoadModule php4_module    extramodules/libphp4.so
  </IfModule>
  <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
    RequestHeader unset If-Modified-Since
  </Files>
</IfDefine>
[...]


Reproducible: Always
Steps to Reproduce:
http://bugs.php.net/bug.php?id=17098
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-14 19:08:37 UTC
Fixed in new PHP eclass to be released very soon.
When it is, please test it ASAP.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-18 02:43:33 UTC
Should be fixed properly now.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-26 17:08:18 UTC
closing old bugs.