Dear developers,

The attached patch fixes the bug 3533 [1], still existing in trunk (revno: 14938). The problem relates to the fact that the code 303 (scSeeOther) is not considered by Squid as a one permitted to remove public store entries. Below is excerpt from src/http.cc:

180 /// Remove an existing public store entry if the incoming response (to be 181 /// stored in a currently private entry) is going to invalidate it.
   182  static void
   183  httpMaybeRemovePublic(StoreEntry * e, Http::StatusCode status)

I've successfully replicated the issue and the patch solved the problem in my test environment.


[1] http://bugs.squid-cache.org/show_bug.cgi?id=3533


Garri
--- src/http.cc	2016-11-13 01:07:30.853463230 +0500
+++ src/http.cc	2016-11-13 01:07:59.344340541 +0500
@@ -202,6 +202,8 @@
 
     case Http::scFound:
 
+    case Http::scSeeOther:
+
     case Http::scGone:
 
     case Http::scNotFound:
_______________________________________________
squid-dev mailing list
[email protected]
http://lists.squid-cache.org/listinfo/squid-dev

Reply via email to