Skip to content

Instantly share code, notes, and snippets.

@dhcole
Created June 24, 2013 19:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhcole/5853046 to your computer and use it in GitHub Desktop.
Save dhcole/5853046 to your computer and use it in GitHub Desktop.
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