Question
CacheStaleOnError and CacheIgnoreHeaders interaction for stale error responses
Zo Indigo
0 reputation · 19 Nov 2021, 04:44 UTC
117.1K views0
Configuration Goal
When the origin server returns a 5xx error and CacheStaleOnError is enabled, Apache serves a stale cached copy. The administrator wants to ensure that any headers listed in CacheIgnoreHeaders are removed from that stale response, just as they are for fresh responses.
Current documentation does not clarify whether CacheIgnoreHeaders is applied to the stale content delivered under CacheStaleOnError, leaving the behavior uncertain.
- Does
CacheIgnoreHeadersstrip headers from stale responses served due toCacheStaleOnError? - If not, what configuration or directive would be required to achieve header stripping for stale error responses?
- Are there any known side‑effects or performance implications of applying
CacheIgnoreHeadersto stale content in this scenario?