The URL configuration phase in Peakhour.IO processes rules based on the received request headers. When a rule's condition evaluates to true, the system executes the associated actions and stops further processing.
The filter matches requests with a URI path that starts with "/api/v1/":
starts_with(http.request.uri.path, "/api/v1/")
The configuration enables caching for API requests:
vconf.set:
cdn_enabled: "true"
cdn_query_mode: "strip"
implicit_cache_ttl: "3600"
This configuration strips query parameters and sets a cache time-to-live of 1 hour.
The URL phase provides access to the following fields: