Re: mod_cache and wildcard url's

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

 



Thanks for the prompt reply - much appreciated.

This confirmed what my experimentation showed, so I've come up with a solution that, while not quite ideal, seems to be working.

I've created a rewrite matching the "user_score" portion of the uri, and send only these requests to a new virtual host, which in turn is home to the cache. So far, it seems to be working. I admit that it's probably not an optimal solution, but it's reducing load on the back-end cluster significantly.

Once again, thanks for the help!
Wayne

On 8/9/07, Joshua Slive <joshua@xxxxxxxx> wrote:
On 8/9/07, wi <icebattle@xxxxxxxxx> wrote:
> Hi again
>
> I have a REST-based application that is getting quite loaded. I need to
> begin caching some dynamically generated png files that are created by the
> command:
>
> /users/<id>/games<game-id>/user_score
>
> Ideally, I'd like to create a caching directive along the following lines:
>
> CacheEnable disk /users/*/games/*/user_score
>
> so that the thumbnail graphic can be cached.

As far as I know, you can't use wildcards in CacheEnable (although I
haven't checked the code). You can only specify an exact leading path.

One thing to consider: if you are sending proper cache-control
directives with your non-png files, then there shouldn't be any
problem in letting the cache act on them. If you don't want them in
the cache at all, simply send Cache-control: no-cache.

Joshua.

---------------------------------------------------------------------
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




--
2X7 -> %A-3+ -> %K-7+ -> %9-?+ -> %Q-8 -> ?9-?9+
[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