Skip to content

Instantly share code, notes, and snippets.

@walkermalling
walkermalling / varnish-jsonp.vcl
Created Mar 7, 2016 — forked from simonw/varnish-jsonp.vcl
Get Varnish to handle JSON-P requests for you
View varnish-jsonp.vcl
backend default {
.host = "127.0.0.1";
.port = "8000";
}
# We go BACK to varnish to get it to generate an ESI template that
# generates a JSON-P response.
backend jsonp_template_backend {
.host = "127.0.0.1";
.port = "8070";