(cacheKey string)
| 321 | } |
| 322 | |
| 323 | func (l *Location) RemoveServerCache(cacheKey string) { |
| 324 | l.RemoveDirective("proxy_ignore_headers", []string{"Set-Cookie", "Cache-Control", "expires"}) |
| 325 | l.RemoveDirective("proxy_cache", []string{cacheKey}) |
| 326 | l.RemoveDirective("proxy_cache_key", []string{"$host$uri$is_args$args"}) |
| 327 | l.RemoveDirective("proxy_cache_valid", []string{"200"}) |
| 328 | l.Cache = false |
| 329 | l.ServerCacheTime = 0 |
| 330 | l.ServerCacheUint = "" |
| 331 | } |
| 332 | |
| 333 | func (l *Location) AddSubFilter(subFilters map[string]string) { |
| 334 | l.RemoveDirective("sub_filter", []string{}) |
no test coverage detected