mod_cache with CacheStaleOnError returns 503 for proxy error instead of returning stale entry from cache

Solution Verified - Updated -

Issue

  • We us mod_cache on httpd. CacheStaleOnError should default to On and we explicitly set it to On, but it does not seem to work since httpd is returning 502 or 503 responses in the event of a failed proxy attempt instead of serving the stale cache content

Environment

  • Red Hat Enterprise Linux (RHEL)
  • JBoss Core Services (JBCS)
  • Apache httpd
  • mod_cache
  • mod_proxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content