Caching a resource after specific number of requests
Geoff Simmons
geoff at uplex.de
Thu Dec 5 10:30:06 UTC 2019
On 12/5/19 11:24, Dridi Boukelmoune wrote:
> On Tue, Dec 3, 2019 at 6:04 PM al sefid <sefidmou at yahoo.com> wrote:
>>
>> Is there any functionality like proxy_cache_min_uses in the
>> Varnish cache that caches a resource after specific number of
>> requests to that resource?
>
> Varnish is not capable of doing that by itself, but as Geoff pointed
> out on github you could rely on some form of throttling to emulate
> this functionality, but that requires a third-party module:
>
> https://github.com/varnishcache/varnish-cache/issues/3150#issuecomment-561307014
>
> Be careful though, his example was a bit simplistic (I assume on
> purpose to show the idea) and shouldn't be used as-is.
Right, and also not tested.
HTH nevertheless,
Geoff
--
** * * UPLEX - Nils Goroll Systemoptimierung
Scheffelstraße 32
22301 Hamburg
Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753
http://uplex.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20191205/7f37bda8/attachment.bin>
More information about the varnish-misc
mailing list