You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/ruleset-engine/rules-language/actions.mdx
+42-2Lines changed: 42 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,7 +268,7 @@ The available actions depend on the [phase](/ruleset-engine/about/phases/) where
268
268
</td>
269
269
<td>No</td>
270
270
</tr>
271
-
<tr>
271
+
<tr>
272
272
<td>
273
273
<strong>Set Cache Settings</strong><br />
274
274
<br />
@@ -280,14 +280,54 @@ The available actions depend on the [phase](/ruleset-engine/about/phases/) where
280
280
Cache Rules allows you to customize cache settings on Cloudflare.
281
281
</p>
282
282
<p>
283
-
Only available for <ahref="/rules/compression-rules/">Cache Rules</a>, in the <code>http_request_cache_settings</code> phase.
283
+
Only available for <ahref="/cache/how-to/cache-rules/">Cache Rules</a>, in the <code>http_request_cache_settings</code> phase.
284
284
</p>
285
285
<p>
286
286
In the Cloudflare dashboard, this action is not listed in action selection dropdowns. To use this action, <ahref="/cache/how-to/cache-rules/create-dashboard/">create a cache rule</a>.
287
287
</p>
288
288
</td>
289
289
<td>No</td>
290
290
</tr>
291
+
<tr>
292
+
<td>
293
+
<strong>Serve Error</strong><br />
294
+
<br />
295
+
API value:<br />
296
+
<code>serve_error</code>
297
+
</td>
298
+
<td>
299
+
<p>
300
+
Serves error content to the website visitor, according to the custom error rule configuration.
301
+
</p>
302
+
<p>
303
+
Only available for <ahref="/rules/custom-errors/#custom-error-rules">Custom Error Rules</a>, in the <code>http_custom_errors</code> phase.
304
+
</p>
305
+
<p>
306
+
In the Cloudflare dashboard, this action is not listed in action selection dropdowns. To use this action, <ahref="/rules/custom-errors/create-rules/#create-a-custom-error-rule-dashboard">create a custom error rule</a>.
307
+
</p>
308
+
</td>
309
+
<td>Yes</td>
310
+
</tr>
311
+
<tr>
312
+
<td>
313
+
<strong>Log custom field</strong><br />
314
+
<br />
315
+
API value:<br />
316
+
<code>log_custom_field</code>
317
+
</td>
318
+
<td>
319
+
<p>
320
+
Configures custom fields for Logpush jobs in a zone.
321
+
</p>
322
+
<p>
323
+
Only available for <ahref="/logs/logpush/logpush-job/custom-fields/">custom fields</a>, in the <code>http_log_custom_fields</code> phase.
324
+
</p>
325
+
<p>
326
+
In the Cloudflare dashboard, this action is not listed in action selection dropdowns. To use this action, <ahref="/logs/logpush/logpush-job/custom-fields/#enable-custom-fields-via-dashboard">configure custom log fields</a> for Logpush jobs.
0 commit comments