RE: Clearing cache selectively on Apache + mod_cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Another update. It was possible to make it happen using virtual hosts by setting the ServerName attribute of both virtual hosts the same, with the only difference being that one of them has CacheIgnoreCacheControl set to On, and the other to Off, and then sending a request to that host with cache-control: no-cache. I think this is the way it's going to have to work.

Thanks again to everyone for your contributions.

-----Original Message-----
From: Karim Zaki [mailto:Karim.Zaki@xxxxxxxxxx]
Sent: Tuesday, December 02, 2008 1:07 PM
To: users@xxxxxxxxxxxxxxxx
Subject: RE:  Clearing cache selectively on Apache + mod_cache

Seems I'm back at square 1. The idea of using max-age=0 did not work, which, on second thought, makes sense. CacheIgnoreCacheControl should ignore the "cache-control" header regardless of its value. The virtual host solution did not work either. It created new cache entries for the vhost.

-----Original Message-----
From: André Warnier [mailto:aw@xxxxxxxxxx]
Sent: Monday, December 01, 2008 6:20 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Clearing cache selectively on Apache + mod_cache

Eric Covener wrote:
> On Mon, Dec 1, 2008 at 11:09 AM, André Warnier <aw@xxxxxxxxxx> wrote:
>> Which leads me to believe that, as such, the scheme proposed with the
>> separate VirtualHost will not work as simply as expected.
>
> Yep, it looks like you'd need to jump through hoops to have a vhost
> that was able to nuke these requests (using the same hostname on a
> separate interface).

Just intellectual curiosity : other than going through the source code
of mod_cache, is there a description somewhere of the algorithm used by
mod_cache to calculate this hashcode ?


---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux