Skip to content

Instantly share code, notes, and snippets.

@walkermalling
walkermalling / varnish-jsonp.vcl
Created March 7, 2016 18:41 — forked from simonw/varnish-jsonp.vcl
Get Varnish to handle JSON-P requests for you
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";