告诉varnish不要缓存以in.html结尾的请求

时间:2015-09-28 14:13:44

标签: varnish varnish-vcl

  1. 如何告诉Varnish VCL配置文件不要缓存 任何以.html结尾的网址。这是一个Magento网站,我这样做 不希望缓存所有以.html结尾的产品页面。我认为?.html*.html可能是我需要的外卡。

  2. 我也可以告诉Varnish处理任何以url结尾的请求 查询字符串?___from_store=0&___store=ie与它相同 如果查询字符串不存在。所以 example.com/?___from_store=0&___store=ie将被视为相同 作为Varnish的example.com

1 个答案:

答案 0 :(得分:0)

我的第一部分问题所需的通配符似乎是# The number of nodes in the cluster (default 3) CASSANDRA_NODE_COUNT=3 # The number of seed nodes in the cluster (default 2) # set this to 1, if you only want to spawn one node CASSANDRA_SEED_COUNT=2

在我的VCL中我有

.*\.html$
相关问题