Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Bugs

[Bug 47985] The module does not manipulate non-200 response headers

 

 

Apache bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

Oct 16, 2009, 9:12 AM

Post #1 of 6 (501 views)
Permalink
[Bug 47985] The module does not manipulate non-200 response headers

https://issues.apache.org/bugzilla/show_bug.cgi?id=47985

--- Comment #1 from amak [at] covalent 2009-10-16 09:12:32 UTC ---
In the following configuration example:

RedirectPermanent / http://backend/
Header add "Cache-Control" "max-age=60"
RequestHeader set "Cache-Control" "max-age=60"

Neither the request header nor the response header contains the added
Cache-Control header.

Same behavior with the following config:

RewriteEngine On
RewriteRule ^/(.*) http://backend/$1 [R=302,L]
Header add "Cache-Control" "max-age=60"
RequestHeader set "Cache-Control" "max-age=60"

Order is not the issue here as switching the order of rewrite and header
results the same, where Cache-Control is not in the request nor in the response
header.

However, if proxy is used, the header is there:

ProxyPass / http://backend/
ProxyPassReverse / http://backend/
Header add "Cache-Control" "max-age=60"
RequestHeader set "Cache-Control" "max-age=60"

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe [at] httpd
For additional commands, e-mail: bugs-help [at] httpd


bugzilla at apache

Oct 16, 2009, 10:06 AM

Post #2 of 6 (479 views)
Permalink
[Bug 47985] The module does not manipulate non-200 response headers [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47985

Eric Covener <covener [at] gmail> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID

--- Comment #2 from Eric Covener <covener [at] gmail> 2009-10-16 10:06:08 UTC ---
The Header directive only modifies 2xx responses by default, although the doc
didn't describe it very well. Try a first argument of 'always' as already
described in the manual.

Consult the users discussion list for further assistance.

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe [at] httpd
For additional commands, e-mail: bugs-help [at] httpd


bugzilla at apache

Oct 16, 2009, 8:48 PM

Post #3 of 6 (470 views)
Permalink
[Bug 47985] The module does not manipulate non-200 response headers [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47985

amak [at] covalent changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |

--- Comment #3 from amak [at] covalent 2009-10-16 20:48:07 UTC ---
Well, either this is a doc bug or header simply does not comply to the spec.

As you have suggested, I added always as the condition. The cache-control
header is not added in.

Please note that this bug is opened after much testing and research and
discussion with one of the ASF members.

Have the provided configuration that reproduces the problem been tried before
this bug is closed?

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe [at] httpd
For additional commands, e-mail: bugs-help [at] httpd


bugzilla at apache

Oct 17, 2009, 7:33 AM

Post #4 of 6 (465 views)
Permalink
[Bug 47985] The module does not manipulate non-200 response headers [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47985

Eric Covener <covener [at] gmail> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEEDINFO

--- Comment #4 from Eric Covener <covener [at] gmail> 2009-10-17 07:33:55 UTC ---
(In reply to comment #3)
> Well, either this is a doc bug or header simply does not comply to the spec.
>
> As you have suggested, I added always as the condition. The cache-control
> header is not added in.
>

You'll need to add some more detail, as the following works for me:

<virtualhost *:80>
Header always add Cache-Control max-age=60
RedirectMatch 301 ^/$ http://localhost/other.html
</virtualhost>

$ wget -S http://localhost/
--2009-10-17 10:29:02-- http://localhost/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 301 Moved Permanently
Date: Sat, 17 Oct 2009 14:29:02 GMT
Server: IBM_HTTP_Server
Cache-Control: max-age=60
Location: http://localhost/other.html

Same for rewrite in per-vhost config and per-directory config.

Can you show your current configuration and a sample request/response against
that configuration that illustrates the bug?

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe [at] httpd
For additional commands, e-mail: bugs-help [at] httpd


bugzilla at apache

Oct 17, 2009, 7:37 AM

Post #5 of 6 (465 views)
Permalink
[Bug 47985] The module does not manipulate non-200 response headers [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47985

--- Comment #5 from Eric Covener <covener [at] gmail> 2009-10-17 07:37:02 UTC ---
Whoops, my test is against a 2.2 based Apache despite Server: header!
Reproduced on HEAD of 2.2.x FWIW.

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe [at] httpd
For additional commands, e-mail: bugs-help [at] httpd


bugzilla at apache

Oct 17, 2009, 8:05 AM

Post #6 of 6 (465 views)
Permalink
[Bug 47985] The module does not manipulate non-200 response headers [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47985

--- Comment #6 from Eric Covener <covener [at] gmail> 2009-10-17 08:05:43 UTC ---
doc update for mod_headers is now visible externally, with emphasis on the
default behavior.

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe [at] httpd
For additional commands, e-mail: bugs-help [at] httpd

Apache bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.