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 12KB

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