Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
请教如何使用lua来控制缓存规则。
louis.hot.hot
Hi,
一种是使用nginx的
location ~ .*\.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$ {
这种方式来单独设置缓存规则
但我想把这些缓存规则放到redis,用lua按rdis中的规则来缓存指定文件,从而实现修改缓存规则不需要重载nginx。把整个逻辑用lua来处理。
谢谢了
hadalsyang
规则放在redis ,然后lua 代码设置header 头嘛。