Greetings all, been a bit.
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.
I have a test that insures that objects with an explicit "Cache-Control: no-cache" 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)."
I have a test that insures that objects with an explicit "Cache-Control: no-cache" 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)."
I'm getting a fail when testing against 3.5, meaning it's providing a cache object
Miss with no-cache | FAIL <------
Running test: Miss with no-cache...
Resetting hit counter...
Fetching URL: http://10.13.5.222/admin/squid_test.php?action="">
HTTP 200: 200 OK
X-Cache: MISS from dev-centOS
X-Cache-Lookup: MISS from dev-centOS:80
Fetching URL: http://10.13.5.222/admin/squid_test.php?action="">
HTTP 200: 200 OK
X-Cache: MISS from dev-centOS
X-Cache-Lookup: MISS from dev-centOS:80
Fetching URL: http://10.13.5.222/admin/squid_test.php?action="">
HTTP 200: 200 OK
X-Cache: MISS from dev-centOS
X-Cache-Lookup: HIT from dev-centOS:80 <—— Shows a hit (this should be 10 misses , a hit should never happen)
Miss with no-cache | FAIL <------
Running test: Miss with no-cache...
Resetting hit counter...
Fetching URL: http://10.13.5.222/admin/squid_test.php?action="">
HTTP 200: 200 OK
X-Cache: MISS from dev-centOS
X-Cache-Lookup: MISS from dev-centOS:80
Fetching URL: http://10.13.5.222/admin/squid_test.php?action="">
HTTP 200: 200 OK
X-Cache: MISS from dev-centOS
X-Cache-Lookup: MISS from dev-centOS:80
Fetching URL: http://10.13.5.222/admin/squid_test.php?action="">
HTTP 200: 200 OK
X-Cache: MISS from dev-centOS
X-Cache-Lookup: HIT from dev-centOS:80 <—— Shows a hit (this should be 10 misses , a hit should never happen)
Test fails
w/ 2.7.9 config
Miss with no-cache | Pass
Running test: Miss with no-cache...
Resetting hit counter...
Fetching URL: http://devcache01.eng.admission.net/admin/squid_test.php?action="">
HTTP 200: 200 OK
X-Cache: MISS from dev-cache
X-Cache-Lookup: MISS from dev-cache:80
Miss with no-cache | Pass
Running test: Miss with no-cache...
Resetting hit counter...
Fetching URL: http://devcache01.eng.admission.net/admin/squid_test.php?action="">
HTTP 200: 200 OK
X-Cache: MISS from dev-cache
X-Cache-Lookup: MISS from dev-cache:80
I get 10 of the above responses (test passes).
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 "Cache-Control: no-cache" it should be honored natively ya?
Thanks for any pointers
Tory
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users