创建缓存规则,为任何包含 example.com 的主机名设置包含所有查询字符串参数的自定义缓存键:
-
When incoming requests match(当传入请求匹配时):Custom filter expression(自定义过滤表达式)
- Using the Expression Builder(使用表达式构建器):
Hostname contains "example.com" - Using the Expression Editor(使用表达式编辑器):
(http.host contains "example.com")
- Using the Expression Builder(使用表达式构建器):
-
Then(然后):
- Cache eligibility(缓存资格):Eligible for cache(符合缓存条件)
- Setting(设置):Cache key(缓存键)
- Query string(查询字符串):All query string parameters(所有查询字符串参数)
有关配置自定义缓存键时可能的设置,请参阅缓存键。