serrislew opened a new pull request #8484:
URL: https://github.com/apache/trafficserver/pull/8484
Proxies should serve stale content even if DNS lookup to OS is unsuccessful.
- For hierarchical caching, if a child proxy matches successfully to a
parent proxy and child has requested stale object in its cache, it should not
need to make a DNS request for the origin.
- It can validate with the parent and return the object as expected.
- Without hierarchical caching, if stale content is being requested from a
proxy and the DNS lookup to the OS is unsuccessful, it should also serve the
stale object
- this behavior is similar to when the origin server is down and the
proxy serves stale content with a warning header
These changes still respect the `max_stale_age` configurations and do not
serve stale content pass the expiration date.
Autest tests the following using PUSH command to store stale content in
proxy's cache:
- With child mapping to an origin server without a DNS entry and child
matching successfully to parent, a request from child after content becomes
stale returns `200`
- After `max_stale_age` has passed, request from child returns `500` as
stale content is no longer returnable
- Without hierarchical caching and proxy mapping to an origin server without
a DNS entry, a request from proxy after content becomes stale returns `200`
- After `max_stale_age` has passed, request from proxy returns `500` as
stale content is no longer returnable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]