Function Types
- Edge functions can be used in all phases.
Cloud functions: A cloud function does not require a template. When a client request triggers the cloud function rule, CDN calls a FunctionGraph API to execute the function.
- Cloud functions are only supported in the Before origin pull phase.
Worker functions: To create a worker function, use the FunctionGraph template designed for CDN. When a client request triggers the worker function rule, CDN calls a FunctionGraph API to execute the function.
- Worker functions are only supported in the Client request received phase.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.