I am 100% sure. I am adding the header using Java code on Tomcat
behind Apache. If I remove that particular line from the code, the
Cache-Control: private header is not being sent.
Java code, if it matters:
response.addHeader("Cache-Control", "private");
On Wed, Oct 5, 2011 at 8:53 AM, Tom Evans <[email protected]> wrote:
> On Wed, Oct 5, 2011 at 2:16 PM, Brendon Anderson <[email protected]> wrote:
>> I am setting the Cache-Control: private header in a response on a
>> certain url, but mod_cache is still caching this url.
>>
>> Response Headers as indicated by Firefox (Chrome reports similar results):
>>
>> Response Headers
>> Date Wed, 05 Oct 2011 12:58:41 GMT
>> Server Apache/2.2.20 (Win32) mod_jk/1.2.32
>> Expires Wed, 05 Oct 2011 12:59:25 GMT
>> Cache-Control private
>> Content-Language en-US
>> Content-Length 7046
>> Age 15
>> Content-Type text/html;charset=UTF-8
>> X-Cache MISS from x.y.z.com
>> Via 1.0 x.y.z.com:80 (squid/2.6.STABLE22)
>> Proxy-Connection keep-alive
>>
>
> Are you 100% sure that the Cache-Control header is being sent with the
> content, and it is not being added by the Squid cache that you are
> also going through?
>
> Cheers
>
> Tom
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [email protected]
> " from the digest: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]