Invalidate URL cache with http header

Guillaume Quintard guillaume at varnish-software.com
Wed Jul 5 18:50:35 CEST 2017


Ok, then Dridi's answer is correct.

Not a problem to have more than one object under the same hash, it's
notably possible using Vary header (different variant of the same object)

-- 
Guillaume Quintard

On Wed, Jul 5, 2017 at 6:34 PM, Quintin Par <quintinpar at gmail.com> wrote:

> Guillaume,
>
> The documentation isn’t the most update but the code invalidates (reaches)
> the cache.
>
> https://stackoverflow.com/a/23774285/113247
> <https://mailtrack.io/trace/link/b6613e86bd25e6dca1bf0e44d70b310d355207a0?url=https%3A%2F%2Fstackoverflow.com%2Fa%2F23774285%2F113247&userId=74734&signature=12371bb8a9614048>
> this can shed light. Please guide me if this isn’t exactly the behavior to
>
> set req.hash_always_miss = req.http.secretheader == "true";
>
>
>
>> Not as such, it will fetch a new copy regardless and once cached it
>> will shadow the previous one (that will eventually go away).
>>
>> Dridi,
>
> How can two copies of the same cache key exist (assuming the URL is the
> key here)? Won’t that create conflicts?
>
>
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>> <https://mailtrack.io/trace/link/08d6a4ec73e8d8d57e35f0e764c576e39774dfe0?url=https%3A%2F%2Fwww.varnish-cache.org%2Flists%2Fmailman%2Flistinfo%2Fvarnish-misc&userId=74734&signature=30faa7489d5ddc18>
>>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20170705/fee3ac85/attachment.html>


More information about the varnish-misc mailing list