Skip to content

Instantly share code, notes, and snippets.

@tonytan4ever
Created December 4, 2014 15:33
Show Gist options
  • Save tonytan4ever/e38998982350c7739119 to your computer and use it in GitHub Desktop.
Save tonytan4ever/e38998982350c7739119 to your computer and use it in GitHub Desktop.
{'rules':
[{'matches': [{'name': 'url-path', 'value': u'/*'},
{'name': 'url-path', 'value': u'/text'}],
'behaviors': [
{'params': {'cacheKeyValue': '-', 'digitalProperty': u'sage.com',
'cacheKeyType': 'origin', 'hostHeaderValue': '-',
'originDomain': u'mockdomain-text.com', 'hostHeaderType': 'digital_property'},
'name': 'origin', 'value': '-'},
{'name': 'referer-whitelist', 'value': u'*www.mocksitegraphic.com*'},
{'type': 'fixed', 'name': 'caching', 'string': '1200s'}]},
{'matches': [{'name': 'url-path', 'value': u'/img'}],
'behaviors': [{'params': {'cacheKeyValue': '-', 'digitalProperty': u'sage.com', 'cacheKeyType': 'origin', 'hostHeaderValue': '-', 'originDomain': u'mockdomain-image.com', 'hostHeaderType': 'digital_property'}, 'name': 'origin', 'value': '-'},
{'name': 'referer-whitelist', 'value': u'*www.mocksitegraphic.com*'}]},
{'matches': [{'name': 'url-wildcard', 'value': u'/*.jpeg'},
{'name': 'url-wildcard', 'value': u'/*.gif'}],
'behaviors': [{'type': 'fixed', 'name': 'caching', 'string': '1800s'}]}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment