Dear Squid developers,

Please review the attached patch prepared for r14967 which solves the issue described in bug 2258 [1], but triggered purely by means of Cache-Control header. Particularly, a request for an object with header 'Cache-Control: no-cache, no-store' purges a stored one public entry.

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


Thanks in advance!

Garri
=== modified file 'src/HttpRequest.cc'
--- src/HttpRequest.cc	2016-11-04 16:47:34 +0000
+++ src/HttpRequest.cc	2016-12-07 19:40:41 +0000
@@ -545,6 +545,8 @@
 
         // XXX: this would seem the correct place to detect request cache-controls
         //      no-store, private and related which block cacheability
+        if (!flags.ignoreCc && cache_control && cache_control->noStore())
+            return false;
         break;
 
     case AnyP::PROTO_GOPHER:

_______________________________________________
squid-dev mailing list
[email protected]
http://lists.squid-cache.org/listinfo/squid-dev

Reply via email to