SwrCacheKey.Normalize method
SwrCacheKey.Normalize method
Section titled “SwrCacheKey.Normalize method”Normalizes a URL cache key by sorting query string parameters alphabetically. Ensures /api/data?b=2&a=1 and /api/data?a=1&b=2 resolve to the same cache entry.
public static string Normalize(string url)| parameter | description |
|---|---|
| url | The URL to normalize. |
Return Value
Section titled “Return Value”The normalized URL with query parameters sorted alphabetically.
See Also
Section titled “See Also”- class SwrCacheKey
- namespace Swr.Net.Keys