正文
昨天拉取前端的靜態資源到我電腦本地運行測試,發現不管怎麼刪發現還是舊的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的配置不熟