Skip to content

Instantly share code, notes, and snippets.

@dhcole
Created June 24, 2013 19:58
Akamai edge-side-include for wrapping a JSON file in a JSONP callback function
<assign:extract-value>
<variable-name>CALLBACK</variable-name>
<location>Query_String</location>
<location-id>callback</location-id>
<location-id-prefix-match>off</location-id-prefix-match>
<separator>=</separator>
<add-prefix>none</add-prefix>
<add-suffix>none</add-suffix>
</assign:extract-value>
<edgeservices:construct-response>
<status>on</status>
<http-status>200</http-status>
<!-- <body>%(CALLBACK)( &lt;esi:vars&gt;$(QUERY_STRING{'callback'})&lt;/esi:vars&gt; )</body> -->
<body>%(CALLBACK)(&lt;esi:include src="%(AK_PATH)" /&gt;);</body>
<force-cache-eviction>off</force-cache-eviction>
</edgeservices:construct-response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment