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

--- Comment #1 from Tod Schmidt <[email protected]> ---
Looking at the RFC does not seem to explicitly state that a 503 cannot be
cached.

   A response received with a status code of 200, 203, 206, 300, 301 or
   410 MAY be stored by a cache and used in reply to a subsequent
   request, subject to the expiration mechanism, unless a cache-control
   directive prohibits caching. However, a cache that does not support
   the Range and Content-Range headers MUST NOT cache 206 (Partial
   Content) responses.

   A response received with any other status code (e.g. status codes 302
   and 307) MUST NOT be returned in a reply to a subsequent request
   unless there are cache-control directives or another header(s) that
   explicitly allow it. For example, these include the following: an
   Expires header (section 14.21); a "max-age", "s-maxage",  "must-
   revalidate", "proxy-revalidate", "public" or "private" cache-control
   directive (section 14.9).

But I am not returning an expire or cache-control header and it is sill getting
cached.

Response from backend server
* About to connect() to 192.168.252.160 port 80 (#0)
*   Trying 192.168.252.160... connected
* Connected to 192.168.252.160 (192.168.252.160) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.3.0 
> zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 192.168.252.160
> Accept: */*
>
< HTTP/1.1 503 Service Temporarily Unavailable
< Date: Fri, 25 Oct 2013 14:28:21 GMT
< Server: Apache
< Content-Type: text/html
< Content-Length: 237
< Connection: close
<
<HTML>
<HEAD>
<TITLE>Weblogic Bridge Message
</TITLE>
</HEAD>
 <BODY>
<H2>Failure of server APACHE bridge:</H2><P>
<hr>No backend server available for connection: timed out after 10 seconds or
idempotent set to OFF.
<hr> </BODY>
</HTML>

Response from Proxy server

* About to connect() to 192.168.252.211 port 80 (#0)
*   Trying 192.168.252.211... connected
* Connected to 192.168.252.211 (192.168.252.211) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.3.0 
> zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Accept: */*
> Host: www.nature.org
>
< HTTP/1.1 503 Service Temporarily Unavailable
< Date: Fri, 25 Oct 2013 14:28:50 GMT
< Server: Apache
< Content-Type: text/html
< Cache-Control: public,max-age=900
< Vary: Accept-Encoding
< Content-Length: 237
< Connection: close
<
<HTML>
<HEAD>
<TITLE>Weblogic Bridge Message
</TITLE>
</HEAD>
 <BODY>
<H2>Failure of server APACHE bridge:</H2><P>
<hr>No backend server available for connection: timed out after 30 seconds or
idempotent set to OFF.
<hr> </BODY>
</HTML>

Subsequent response from proxy, note that it now has a 'Age:' header indicating
it is serverd from cache.

* About to connect() to 192.168.252.211 port 80 (#0)
*   Trying 192.168.252.211... connected
* Connected to 192.168.252.211 (192.168.252.211) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.3.0 
> zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Accept: */*
> Host: www.nature.org
>
< HTTP/1.1 503 Service Unavailable
< Date: Fri, 25 Oct 2013 14:30:21 GMT
< Server: Apache
< Vary: Accept-Encoding
< Content-Length: 237
< Age: 123
< Connection: close
< Content-Type: text/html
<
<HTML>
<HEAD>
<TITLE>Weblogic Bridge Message
</TITLE>
</HEAD>
 <BODY>
<H2>Failure of server APACHE bridge:</H2><P>
<hr>No backend server available for connection: timed out after 30 seconds or
idempotent set to OFF.
<hr> </BODY>
</HTML>

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to