【发布时间】:2017-08-22 07:47:24
【问题描述】:
我正在使用以下 apache 规则将我的图像缓存 1 年
<Location ~ "/images">
Options Indexes FollowSymLinks MultiViews
FileETag none
AddOutputFilterByType DEFLATE text/css application/x-javascript
ExpiresDefault "access plus 1 year"
Header set Cache-Control "public, max-age=31536000, s-maxage=31536000"
Order allow,deny
allow from all
</Location>
但是如果我向我的图像 url 添加了一个查询字符串,它会忽略该查询字符串并从缓存的版本中提供它应该是新版本并访问服务器
我的查询字符串请求示例
images/969532/470/320/800.jpg?pattern=true
调整缓存规则以尊重查询字符串并再次访问服务器的任何提示?
【问题讨论】:
-
请出示您的请求标头好吗?
-
这是我的回复
标签: apache http query-string