mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-06-24 12:18:54 +00:00
Updated 代理服务器的新轮子:anyproxy (markdown)
parent
08a6abde2c
commit
3bff61e201
@ -74,7 +74,7 @@
|
||||
|
||||
AnyProxy规则文件样例
|
||||
---------------
|
||||
以“防止CDN返回304”这个需求为例,最直接的方案是拦截请求,在发送到CDN前删除header中的`if-modified-since`字段。在AnyProxy中,配置replaceRequestOption接口,三行代码就能实现这个自定义功能:
|
||||
以“防止CDN返回304”这个需求为例,最直接的方案是拦截请求,在发送到CDN前删除header中的`if-modified-since`字段。在AnyProxy中,配置replaceRequestOption接口,3行代码就能实现这个自定义功能:
|
||||
|
||||
```javascript
|
||||
//rule file
|
||||
|
Loading…
x
Reference in New Issue
Block a user