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 2017/03/02 15:19:36 UTC
[Bug 60804] New: ExpiresByType and ExpiresDefault is ignored when
used SetHandler application/x-httpd-php
https://bz.apache.org/bugzilla/show_bug.cgi?id=60804
Bug ID: 60804
Summary: ExpiresByType and ExpiresDefault is ignored when used
SetHandler application/x-httpd-php
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P2
Component: mod_expires
Assignee: bugs@httpd.apache.org
Reporter: 7raivis@inbox.lv
Target Milestone: ---
/sitemap.xml Response Headers shows 1 day expiration while expected to be 1
year (or at least 1 week)
Content-Type: application/xml; charset=utf-8
Date: Tue, 27 Dec 2016 19:59:00 GMT
Expires: Wed, 28 Dec 2016 19:59:00 GMT
seems SetHandler forces text/html expiration and doesn't allow to rewrite it
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType text/html "access plus 1 day"
ExpiresByType application/xml "access plus 1 week"
<FilesMatch ^sitemap\.xml$>
SetHandler application/x-httpd-php
Header set Content-Type "application/xml"
ExpiresDefault "access plus 1 year"
</FilesMatch>
the loaded modules order doesn't fix it either
...
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
...
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 60804] ExpiresByType and ExpiresDefault is ignored when used
SetHandler application/x-httpd-php
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60804
Binyamin <7r...@inbox.lv> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |7raivis@inbox.lv
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 60804] ExpiresByType and ExpiresDefault is ignored when used
SetHandler application/x-httpd-php
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60804
Binyamin <7r...@inbox.lv> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|2.5-HEAD |2.4.25
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org