<div dir="ltr"><br><div class="gmail_extra">Greetings all, been a bit.<br><br></div><div class="gmail_extra">So I'm working on a new server config and loaded the latest 3.5 and have tweaked my 2.7 configs a bit. Things are working but I've got one that I can't figure out.<br><br>I have a test that insures that objects with an explicit "<span class="">Cache-Control: no-cache</span>"
header are NOT cached by Squid. This is done by keeping a special hit
counter on the server and counting origin requests. A unique URL is
fetched exactly 10 times, and all of them are asserted to be cache
misses (both Squid headers must be MISS). At the end, the hit counter
is tested and made sure it equals the number of requests (10)."<br><br></div><div class="gmail_extra">I'm getting a fail when testing against 3.5, meaning it's providing a cache object<br><br>Miss with no-cache | FAIL <------<br><br><br>Running test: Miss with no-cache...<br>Resetting hit counter...<br>Fetching URL: <a href="http://10.13.5.222/admin/squid_test.php?action=reset_hit_count&random=0.385536803712753">http://10.13.5.222/admin/squid_test.php?action=reset_hit_count&random=0.385536803712753</a><br>HTTP 200: 200 OK<br>X-Cache: MISS from dev-centOS<br>X-Cache-Lookup: MISS from dev-centOS:80<br>Fetching URL: <a href="http://10.13.5.222/admin/squid_test.php?action=simple&type=no_cache&random=0.0843643311677589">http://10.13.5.222/admin/squid_test.php?action=simple&type=no_cache&random=0.0843643311677589</a><br>HTTP 200: 200 OK<br>X-Cache: MISS from dev-centOS<br>X-Cache-Lookup: MISS from dev-centOS:80<br>Fetching URL: <a href="http://10.13.5.222/admin/squid_test.php?action=simple&type=no_cache&random=0.0843643311677589">http://10.13.5.222/admin/squid_test.php?action=simple&type=no_cache&random=0.0843643311677589</a><br>HTTP 200: 200 OK<br>X-Cache: MISS from dev-centOS <br>X-Cache-Lookup: HIT from dev-centOS:80 <b><—— Shows a hit (this should be 10 misses , a hit should never happen)</b> <br><br></div><div class="gmail_extra"><b>Test fails</b><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">w/ 2.7.9 config<br>Miss with no-cache | Pass <br><br>Running test: Miss with no-cache...<br>Resetting hit counter...<br>Fetching URL: <a href="http://devcache01.eng.admission.net/admin/squid_test.php?action=reset_hit_count&random=0.671442807268036">http://devcache01.eng.admission.net/admin/squid_test.php?action=reset_hit_count&random=0.671442807268036</a><br>HTTP 200: 200 OK<br>X-Cache: MISS from dev-cache<br>X-Cache-Lookup: MISS from dev-cache:80<br><br></div><div class="gmail_extra"><b>I get 10 of the above responses (test passes).</b><br><br></div><div class="gmail_extra">I'm wondering what I'm missing, 3.5 should be fully http 1.1 compliant meaning that there should not be any squid directives guiding this (nor can I find any). If the client sends a "<span class="">Cache-Control: no-cache</span>" it should be honored natively ya?<br><br></div><div class="gmail_extra">Thanks for any pointers<br><br></div><div class="gmail_extra">Tory<br></div></div>