I am setting up a reverse proxy cache using squid (squid/2.6.STABLE12)
but i have a little problem : i want to cache only pages served to
authenticated (via php) users. When a user is authenticated, i add a
cookie named jvpc_log, and i want to tell squid to forward all the
requests to my webserver when the cookie is set.
I have tried :
cache_peer 87.98.222.47 parent 80 0 no-query originserver connect-timeout=5
acl JV_AUTH_COOKIE req_header Cookie [-i] jvpc_log
cache deny JV_AUTH_COOKIE
but with cache deny squid remove the page from the cache when an
authenticated user load a page. That is not what i want, i only want to
tell squid to ignore the cache for this request, and continue to use the
same cached page for unauthenticated users.
How can i do this (and is it even possible ? :)
Thanks a lot