Created
June 24, 2013 19:58
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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)( <esi:vars>$(QUERY_STRING{'callback'})</esi:vars> )</body> --> | |
<body>%(CALLBACK)(<esi:include src="%(AK_PATH)" />);</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