()
| 313 | } |
| 314 | |
| 315 | func (l *Location) RemoveBrowserCache() { |
| 316 | l.RemoveDirectiveByFullParams("if", []string{"(", "$uri", "~*", `"\.(gif|png|jpg|css|js|woff|woff2)$"`, ")"}) |
| 317 | l.RemoveDirectiveByFullParams("if", []string{"(", "$uri", "~*", `"\.(gif|png|jpg|css|js|woff|woff2|jpeg|svg|webp|avif)$"`, ")"}) |
| 318 | l.RemoveDirective("add_header", []string{"Cache-Control", "no-cache"}) |
| 319 | l.CacheTime = 0 |
| 320 | l.CacheUint = "" |
| 321 | } |
| 322 | |
| 323 | func (l *Location) RemoveServerCache(cacheKey string) { |
| 324 | l.RemoveDirective("proxy_ignore_headers", []string{"Set-Cookie", "Cache-Control", "expires"}) |
no test coverage detected