How do I use fields like http.request.uri.path in the header value response for the Page Transform rules?
I am trying to set a new cookie when a query string exists. Here are the basic rules I am trying to do:
If page requests match (http.request.uri.query contains "refmid=")
Then Add: Set-Cookie header with the value of refmid=concat(http.request.uri.path)
The http.request.uri.path I cannot get to be set with the refmid value from the query string. I have tried all of the values for http.request etc etc with and without concat.
The expires portion of the cookie is part of the text string set by the server. That would most likely require a worker to parse through response headers to get the expires string youâd want to include in a custom response header.
Edit: Currently looking at field cf.tls_client_auth.cert_not_after I also donât need the uri.path I need the URI parameter (is that not possible? Argh).
â if there is a better way to go about this, please let me know. I basically just need to add a cookie to start tracking requests while using Cloudflare Page Caching Rules so I can track while the page is serving a cached version.