2011/2/9 Fossan, Eirik Wallem <eirik.wallem.fossan(a)aftenposten.no>no>:
Thanks for your quick reply. Appreciate it.
As JSON results are fairly limited, we consider setting up a proxy to fetch your
XML-results - unless you want to set up a crossdomain file for us all :-)
Our sys admin is a bit worried about proxies and potential misuse. Are you ok with this?
It should be fine; whether someone abuses our API directly or via your
proxy doesn't really matter on our side.
If you set up a real proxy server, it should obey the Cache-Control
header instructing it to cache responses for 24 hours. If you write
your own makeshift proxy in PHP or something, please have it cache its
fetches from api.php , and for your own good have it send
Cache-Control: public, s-maxage=86400, max-age=86400 as well.
Roan Kattouw (Catrope)