Currently the .htaccess file contains a default expiration of 2 weeks and an exempt for text/html
However, depending on the Apache configuration this might have a negative effect on PHP script.
This results in a default expiration of 2 weeks for PHP files. While Drupal forces an expiration time of 0 in it's PHP script the setting in the .htaccess file will influence all PHP scripts that are below the Drupal tree.
This patch also adds an 2 week expiration exempt for application/x-httpd-php

All current Drupal versions (4.7.7, 5.2 and 6.x) are affected by this problem.

CommentFileSizeAuthor
htaccess_15.patch497 byteselmuerte

Comments

ainigma32’s picture

Assigned: Unassigned » ainigma32
Status: Needs review » Closed (won't fix)

Trying to clear up some of the old clutter...

I'm by no means an expert but this seems wrong. As I understand it the application/x-httpd-php type is usually used in httpd.conf to add an handler for .php files. After parsing that .php file the webserver produces a file with mime-type text/html (unless it is explicitly changed in the php script)
Since the text/html extension is already covered in the current .htaccess file, the patch is redundant.

So unless I got this completely wrong I this issue shouldn't be fixed.

ainigma32’s picture

Status: Closed (won't fix) » Closed (fixed)

Housekeeping...