Remove Outgoing Request Parameters
Remove query parameters from a request before forwarding it to the origin.
How it works
Your end-users may request a URL with query strings, however you may not want those query strings to be passed to your origin server or be considered as part of your cache key.
This behavior can remove those query strings.
Note that this leads to the following:
- The forward path has a trailing
?
.
For example,/=/1/123456/10s/www.example.com/new?
- The type code is replaced with
=
in the cache key because the Exclude all parameters behavior is enabled in the Cache Key Query Parameters, and theCache-Key
also contains?
.
For example,X-Cache-Key: S/=/16789/123456/10s/www.example.com/new?
Advanced Metadata Method
To remove the trailing
?
along with all query strings from the cache key without changing the type code, you need the prune-query metadata. Contact your Akamai Account Team to enable Professional Services and have these advanced metadata set for you.
Features and options
Field | What it does |
---|---|
Query Parameters List | List the query parameters that need to be removed from the request to the origin. |
Add
*
as a parameter if you want to remove all query parameters.
Updated almost 2 years ago