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 :
,691,363test({...cached-json...});
210 시스템 로그 출력 :
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
어떻게 JSON을 얻을 수있는 ESI 요청을 평가하기 위해?
를 해결나요? – trimbletodd