Hi,
I think that's possible using lua remap plugin:

1. you send request to ATS for the url http://example.com
2. in remap.config you put something like:
regex_map http://origin1.(.*) http://$1
regex_map http://origin2.(.*) http://$1
3. in lua remap plugin you can send an external request for 
http://origin1.example.com and another one for http://origin2.example.com 
(using a pool and passing through the proxy itself), finally keep plugin return 
with the original url (http://example.com)
4. the first request of the pool is cached, the second one get the value by the 
first request returned and ATS return the original url getting it from the 
cache too.


I suppose that "should" work


Reply via email to