jsonpを処理できるようにワニスを構成しようとしています。 https://gist.github.com/640331ワニス付きjsonpを扱う
私はので、私はサーバーにリクエストを送信した後
with thisを終わったワニス3.0.2を使用しています:私は取得
curl http://example.com/test?callback=test
私は基本的な概念として、このソースを使用します次
test(<esi:include src="http://example.com/test" />);
のInsted:
test({...cached-json...});
のsyslog出力:JSONを取得するには、ESIリクエストを評価する方法
The syslog outputs the following:
May 09 12:48:45 [varnishd] before if for: /JSONP-ESI-TEMPLATE
May 09 12:48:45 [varnishd] before if for: callback, url: example.com:6081
May 09 12:48:45 [varnishd] in if for: callback, url: example.com:6081
May 09 12:52:40 [varnishd] before if for: /JSONP-ESI-TEMPLATE
May 09 12:52:40 [varnishd] in if for: /JSONP-ESI-TEMPLATE
May 09 12:52:40 [varnishd] before if for: obj.status == 760
May 09 12:52:40 [varnishd] in if for: obj.status == 760
May 09 12:52:40 [varnishd] before if for: beresp.http.X-ESI
May 09 12:52:40 [varnishd] in if for: beresp.http.X-ESI
May 09 12:52:40 [varnishd] before if for: beresp.http.X-JSONP-Server
May 09 12:52:40 [varnishd] in if for: beresp.http.X-JSONP-Server
?
あなたは今まで、これは解決したのですか? – trimbletodd