You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Offload_origin.json 8.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. {
  2. "behaviors": [
  3. {
  4. "name": "caching",
  5. "options": {
  6. "behavior": "NO_STORE"
  7. }
  8. },
  9. {
  10. "name": "tieredDistribution",
  11. "options": {
  12. "enabled": true
  13. }
  14. },
  15. {
  16. "name": "validateEntityTag",
  17. "options": {
  18. "enabled": false
  19. }
  20. },
  21. {
  22. "name": "removeVary",
  23. "options": {
  24. "enabled": false
  25. }
  26. },
  27. {
  28. "name": "cacheError",
  29. "options": {
  30. "enabled": true,
  31. "preserveStale": true,
  32. "ttl": "10s"
  33. }
  34. },
  35. {
  36. "name": "cacheKeyQueryParams",
  37. "options": {
  38. "behavior": "INCLUDE_ALL_ALPHABETIZE_ORDER"
  39. }
  40. },
  41. {
  42. "name": "prefreshCache",
  43. "options": {
  44. "enabled": true,
  45. "prefreshval": 90
  46. }
  47. },
  48. {
  49. "name": "downstreamCache",
  50. "options": {
  51. "allowBehavior": "LESSER",
  52. "behavior": "ALLOW",
  53. "sendHeaders": "CACHE_CONTROL",
  54. "sendPrivate": false
  55. }
  56. },
  57. {
  58. "name": "modifyViaHeader",
  59. "options": {
  60. "enabled": true,
  61. "modificationOption": "REMOVE_HEADER"
  62. }
  63. }
  64. ],
  65. "children": [
  66. {
  67. "behaviors": [
  68. {
  69. "name": "caching",
  70. "options": {
  71. "behavior": "MAX_AGE",
  72. "mustRevalidate": false,
  73. "ttl": "7d"
  74. }
  75. }
  76. ],
  77. "comments": "Override the default caching behavior for CSS and JavaScript",
  78. "criteria": [
  79. {
  80. "name": "fileExtension",
  81. "options": {
  82. "matchCaseSensitive": false,
  83. "matchOperator": "IS_ONE_OF",
  84. "values": [
  85. "css",
  86. "js"
  87. ]
  88. }
  89. }
  90. ],
  91. "name": "CSS and JavaScript",
  92. "options": {},
  93. "criteriaMustSatisfy": "any"
  94. },
  95. {
  96. "behaviors": [
  97. {
  98. "name": "caching",
  99. "options": {
  100. "behavior": "MAX_AGE",
  101. "mustRevalidate": false,
  102. "ttl": "30d"
  103. }
  104. }
  105. ],
  106. "comments": "Override the default caching behavior for fonts.",
  107. "criteria": [
  108. {
  109. "name": "fileExtension",
  110. "options": {
  111. "matchCaseSensitive": false,
  112. "matchOperator": "IS_ONE_OF",
  113. "values": [
  114. "eot",
  115. "woff",
  116. "woff2",
  117. "otf",
  118. "ttf"
  119. ]
  120. }
  121. }
  122. ],
  123. "name": "Fonts",
  124. "options": {},
  125. "criteriaMustSatisfy": "any"
  126. },
  127. {
  128. "behaviors": [
  129. {
  130. "name": "caching",
  131. "options": {
  132. "behavior": "MAX_AGE",
  133. "mustRevalidate": false,
  134. "ttl": "30d"
  135. }
  136. }
  137. ],
  138. "comments": "Override the default caching behavior for images.",
  139. "criteria": [
  140. {
  141. "name": "fileExtension",
  142. "options": {
  143. "matchCaseSensitive": false,
  144. "matchOperator": "IS_ONE_OF",
  145. "values": [
  146. "jpg",
  147. "jpeg",
  148. "png",
  149. "gif",
  150. "webp",
  151. "jp2",
  152. "ico",
  153. "svg",
  154. "svgz"
  155. ]
  156. }
  157. }
  158. ],
  159. "name": "Images",
  160. "options": {},
  161. "criteriaMustSatisfy": "any"
  162. },
  163. {
  164. "behaviors": [
  165. {
  166. "name": "caching",
  167. "options": {
  168. "behavior": "MAX_AGE",
  169. "mustRevalidate": false,
  170. "ttl": "7d"
  171. }
  172. }
  173. ],
  174. "comments": "Override the default caching behavior for files. Files containing Personal Identified Information (PII) should require Edge authentication or not be cached at all.",
  175. "criteria": [
  176. {
  177. "name": "fileExtension",
  178. "options": {
  179. "matchCaseSensitive": false,
  180. "matchOperator": "IS_ONE_OF",
  181. "values": [
  182. "pdf",
  183. "doc",
  184. "docx",
  185. "odt"
  186. ]
  187. }
  188. }
  189. ],
  190. "name": "Files",
  191. "options": {},
  192. "criteriaMustSatisfy": "any"
  193. },
  194. {
  195. "behaviors": [
  196. {
  197. "name": "caching",
  198. "options": {
  199. "behavior": "MAX_AGE",
  200. "mustRevalidate": false,
  201. "ttl": "7d"
  202. }
  203. }
  204. ],
  205. "comments": "Override the default caching behavior for other static objects.",
  206. "criteria": [
  207. {
  208. "name": "fileExtension",
  209. "options": {
  210. "matchCaseSensitive": false,
  211. "matchOperator": "IS_ONE_OF",
  212. "values": [
  213. "aif",
  214. "aiff",
  215. "au",
  216. "avi",
  217. "bin",
  218. "bmp",
  219. "cab",
  220. "carb",
  221. "cct",
  222. "cdf",
  223. "class",
  224. "dcr",
  225. "dtd",
  226. "exe",
  227. "flv",
  228. "gcf",
  229. "gff",
  230. "grv",
  231. "hdml",
  232. "hqx",
  233. "ini",
  234. "mov",
  235. "mp3",
  236. "nc",
  237. "pct",
  238. "ppc",
  239. "pws",
  240. "swa",
  241. "swf",
  242. "txt",
  243. "vbs",
  244. "w32",
  245. "wav",
  246. "midi",
  247. "wbmp",
  248. "wml",
  249. "wmlc",
  250. "wmls",
  251. "wmlsc",
  252. "xsd",
  253. "zip",
  254. "pict",
  255. "tif",
  256. "tiff",
  257. "mid",
  258. "jxr",
  259. "jar"
  260. ]
  261. }
  262. }
  263. ],
  264. "name": "Other static objects",
  265. "options": {},
  266. "criteriaMustSatisfy": "any"
  267. },
  268. {
  269. "behaviors": [
  270. {
  271. "name": "caching",
  272. "options": {
  273. "behavior": "NO_STORE"
  274. }
  275. },
  276. {
  277. "name": "cacheKeyQueryParams",
  278. "options": {
  279. "behavior": "IGNORE",
  280. "exactMatch": true,
  281. "parameters": [
  282. "gclid",
  283. "fbclid",
  284. "utm_source",
  285. "utm_campaign",
  286. "utm_medium",
  287. "utm_content"
  288. ]
  289. }
  290. }
  291. ],
  292. "comments": "Override the default caching behavior for HTML pages cached on edge servers.",
  293. "criteria": [
  294. {
  295. "name": "fileExtension",
  296. "options": {
  297. "matchCaseSensitive": false,
  298. "matchOperator": "IS_ONE_OF",
  299. "values": [
  300. "html",
  301. "htm",
  302. "php",
  303. "jsp",
  304. "aspx",
  305. "EMPTY_STRING"
  306. ]
  307. }
  308. }
  309. ],
  310. "name": "HTML pages",
  311. "options": {},
  312. "criteriaMustSatisfy": "all"
  313. },
  314. {
  315. "behaviors": [
  316. {
  317. "name": "cacheRedirect",
  318. "options": {
  319. "enabled": "false"
  320. }
  321. }
  322. ],
  323. "comments": "Configure caching for HTTP redirects. The redirect is cached for the same TTL as a 200 HTTP response when this feature is enabled.",
  324. "name": "Redirects",
  325. "options": {},
  326. "criteriaMustSatisfy": "all"
  327. },
  328. {
  329. "behaviors": [
  330. {
  331. "name": "cachePost",
  332. "options": {
  333. "enabled": false
  334. }
  335. }
  336. ],
  337. "comments": "Define when HTTP POST requests should be cached. You should enable it under a criteria match.",
  338. "name": "POST responses",
  339. "options": {},
  340. "criteriaMustSatisfy": "all"
  341. },
  342. {
  343. "behaviors": [
  344. {
  345. "name": "graphqlCaching",
  346. "options": {
  347. "enabled": false
  348. }
  349. }
  350. ],
  351. "comments": "Define when your GraphQL queries should be cached.",
  352. "criteria": [
  353. {
  354. "name": "path",
  355. "options": {
  356. "matchCaseSensitive": false,
  357. "matchOperator": "MATCHES_ONE_OF",
  358. "normalize": false,
  359. "values": [
  360. "/graphql"
  361. ]
  362. }
  363. }
  364. ],
  365. "name": "GraphQL",
  366. "options": {},
  367. "criteriaMustSatisfy": "all"
  368. },
  369. {
  370. "behaviors": [
  371. {
  372. "name": "downstreamCache",
  373. "options": {
  374. "behavior": "BUST"
  375. }
  376. }
  377. ],
  378. "comments": "Configure the default client caching behavior for uncacheable content at the edge.",
  379. "criteria": [
  380. {
  381. "name": "cacheability",
  382. "options": {
  383. "matchOperator": "IS_NOT",
  384. "value": "CACHEABLE"
  385. }
  386. }
  387. ],
  388. "name": "Uncacheable objects",
  389. "options": {},
  390. "criteriaMustSatisfy": "all"
  391. }
  392. ],
  393. "comments": "Control the settings related to caching content at the edge and in the browser. As a result, fewer requests go to your origin, fewer bytes leave your data centers, and your assets are closer to your users.",
  394. "name": "Offload origin",
  395. "options": {},
  396. "criteriaMustSatisfy": "all"
  397. }