httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60804] New: ExpiresByType and ExpiresDefault is ignored when used SetHandler application/x-httpd-php
Date Thu, 02 Mar 2017 15:19:36 GMT
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


Mime
View raw message