正文
昨天拉取前端的静态资源到我电脑本地运行测试,发现不管怎么删发现还是旧的js, 最后重启了nginx解决了。查了下资料,网上说nginx的proxy_pass是会缓存静态资源的,我本地的nginx配置如下:
server{
listen 80;
server_name dev.xxx.com ;
location / {
proxy_pass http://localhost:8084;
}
location ^~ /standard/razmall {
proxy_set_header Host $proxy_host;
proxy_pass http://static.xxx.com/en/razmall;
}
}
总结
- 对nginx的配置不熟