Caching some content only

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

 



Hi all,

I have reverse-proxy caching setup and working. What I want to do is no caching by default and only cache items matching example.com/*/img/*

I've tried various combinations using <Location> but it's either ended up caching everything or nothing.

I'm thinking it may be affected by my use of Rewrite. A request for http://www.example.com/123/my-product-image.jpg is mapped to /image.php?id=123 - does location have to specify the *after* rewrite (ie: real) address?

The only way I could think to do this is to use "P" flags in .htaccess to proxy to a separate virtualhost, but I have read this is inefficient and use of <Location> in virtual-hosts.conf is preferred.

Hoping someone can assist please.

Michael Hallager

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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