|
@@ -36,6 +36,7 @@ func passAndLearn(resp *http.Response) error {
|
|
|
resp.StatusCode = 403
|
|
|
resp.Header["Content-Length"] = []string{fmt.Sprint(buf.Len())}
|
|
|
resp.Header.Set("Content-Encoding", "none")
|
|
|
+ resp.Header.Set("Cache-Control", "no-cache, no-store")
|
|
|
log.Println("Filing inside bad class")
|
|
|
feedRequest(req, "BAD")
|
|
|
ControPlane.StatsTokens <- "DOWNGRADE"
|
|
@@ -59,6 +60,7 @@ func blockAndlearn(resp *http.Response) error {
|
|
|
resp.StatusCode = 403
|
|
|
resp.Header["Content-Length"] = []string{fmt.Sprint(buf.Len())}
|
|
|
resp.Header.Set("Content-Encoding", "none")
|
|
|
+ resp.Header.Set("Cache-Control", "no-cache, no-store")
|
|
|
|
|
|
switch {
|
|
|
case isAuth(resp):
|