Matching clients ipv6 addresses using ACLs

2024-06-23 Thread Uday Kumar
s and regards, Uday Kumar ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Re: Varnish unresponsive on our server

2024-06-20 Thread Uday Kumar
024-06-20T181903.node67.conn3 . Concurrent connections to backend VBE.reload_2024-06-20T181903.node67.req247956 0.02 Backend requests sent *Thanks & Regards,* *Uday Kumar* On Thu, Jun 20, 2024 at 11:36 PM Guillaume Quintard < guillaume.qu

Varnish unresponsive on our server

2024-06-20 Thread Uday Kumar
Hello all, We are facing frequent issues of varnish unresponsiveness for sometime on our production server. During this time we have seen that pz_list is being increased to ~3000 and recv_queue is increased to ~130 Also, varnish is responding with response code '0' for sometime, which meant unres

Re: Preventing Caching in Varnish Based on Backend Response Header

2024-06-12 Thread Uday Kumar
Noted. Thanks for suggestion *Thanks & Regards,* *Uday Kumar* On Tue, Jun 11, 2024 at 10:35 PM Guillaume Quintard < guillaume.quint...@gmail.com> wrote: > Hi, > > Don't worry too much about it. Uncacheable objects take a minimal amount > of space in the cache

Re: Preventing Caching in Varnish Based on Backend Response Header

2024-06-11 Thread Uday Kumar
May I know if there is any way to find the best possible TTL? I meant to ask for uncacheable objects *Thanks & Regards,* *Uday Kumar* On Tue, Jun 11, 2024 at 4:11 PM Uday Kumar wrote: > Hello Guillaume, > We have made required changes at our end, but we have doubt on giving > sui

Re: Preventing Caching in Varnish Based on Backend Response Header

2024-06-11 Thread Uday Kumar
ects which are cacheable May I know if there is any way to find the best possible TTL? *Thanks & Regards,* *Uday Kumar* On Tue, May 28, 2024 at 7:07 PM Uday Kumar wrote: > Hello Guillaume, > Great to know about this, it should work for us! > will check this out > > *Tha

Re: Preventing Caching in Varnish Based on Backend Response Header

2024-05-28 Thread Uday Kumar
Hello Guillaume, Great to know about this, it should work for us! will check this out *Thanks & Regards,* *Uday Kumar* On Tue, May 28, 2024 at 5:53 PM Guillaume Quintard < guillaume.quint...@gmail.com> wrote: > Hi Uday, > > Sure, the classic practice will

Preventing Caching in Varnish Based on Backend Response Header

2024-05-28 Thread Uday Kumar
Hello all, We need to prevent caching in Varnish based on a specific header from the backend. Could you please suggest the best approach to achieve this? *Thanks & Regards,* *Uday Kumar* ___ varnish-misc mailing list varnish-misc@varnish-cache

Re: Append uniqueid to a http request at varnish

2024-05-01 Thread Uday Kumar
Hello, Am I missing anything here? On Tue, Apr 30, 2024, 13:37 Uday Kumar wrote: > hello Guillaume, > > I am trying to install vmod_uuid on my centOS 7 machine > > Resource i used: > https://github.com/otto-de/libvmod-uuid/blob/5.x/INSTALL.rst > > varnish version: 5.2.

Re: Append uniqueid to a http request at varnish

2024-04-30 Thread Uday Kumar
recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libvmod-uuid' make: *** [all] Error 2 Please help *Thanks & Regards,* *Uday Kumar* On Thu, Apr 25, 2024 at 6:18 AM Uday Kumar wrote: > Hi Guillaume, > > Thanks for this reminder, I will check this and get back to y

Re: Append uniqueid to a http request at varnish

2024-04-24 Thread Uday Kumar
Hi Guillaume, Thanks for this reminder, I will check this and get back to you! *Thanks & Regards,* *Uday Kumar* On Thu, Apr 25, 2024 at 1:12 AM Guillaume Quintard < guillaume.quint...@gmail.com> wrote: > Hi Uday, > > I feel like we've explored this last year: >

Append uniqueid to a http request at varnish

2024-04-24 Thread Uday Kumar
s know if there is any way to do this at varnish *Thanks & Regards,* *Uday Kumar* ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Re: Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-15 Thread Uday Kumar
Hello Guillaume, Thank you so much! I'll check it out! Thanks & Regards Uday Kumar On Sun, Oct 15, 2023 at 7:32 AM Guillaume Quintard < guillaume.quint...@gmail.com> wrote: > Hello Uday, > > Quick follow-up as I realize that templating can be a bit scary when > co

Re: Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-12 Thread Uday Kumar
ou need to add a new IP or source. If so, it's not great because editing such repetitive code is error-prone, and therefore you should use templating to create the VCL from a simpler, more maintainable source. Sure, will definitely explore! Thanks & Regards Uday Kumar On Fri, Oct 13,

Re: Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-12 Thread Uday Kumar
conditions. One thing I would do though is to generate the VCL from a source file, like a YAML one: Didn't understand, can you please elaborate? Thanks & Regards Uday Kumar On Thu, Oct 12, 2023 at 11:11 PM Guillaume Quintard < guillaume.quint...@gmail.com> wrote: > Hi Uday

Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-12 Thread Uday Kumar
|| (req.url ~ "source=laptop" && client.ip != laptop_source) || (req.url ~ "source=tablet" && client.ip != tablet_source) ){ return(Synth(403, "access denied!")) } This becomes worse, if we have 10's or 20's

Re: Caching Modified URLs by Varnish instead of the original requested URL

2023-09-03 Thread Uday Kumar
Thanks Guillaume, I'll look into it. Thanks & Regards Uday Kumar On Fri, Sep 1, 2023 at 1:36 AM Guillaume Quintard < guillaume.quint...@gmail.com> wrote: > I'm pretty sure it's correctly lowercasing "\2" correctly. The problem is > that you want t

Re: Caching Modified URLs by Varnish instead of the original requested URL

2023-08-31 Thread Uday Kumar
SSUE:* *std.tolower("\2")* in the above statement is *not lowercasing* the string that's captured, but if I test it using *std.tolower("SAMPLE"),* its lowercasing as expected. 1. May I know why it's not lowercasing if *std.tolower("\2") is used*? 2. Also, please

Re: Caching Modified URLs by Varnish instead of the original requested URL

2023-08-22 Thread Uday Kumar
Hi Guillaume, *use includes and function calls* This is great, thank you so much for your help! Thanks & Regards Uday Kumar On Wed, Aug 23, 2023 at 1:32 AM Guillaume Quintard < guillaume.quint...@gmail.com> wrote: > Hi Uday, > > I'm not exactly sure how to read those

Caching Modified URLs by Varnish instead of the original requested URL

2023-08-22 Thread Uday Kumar
st URL? if yes, pls help with details. At Step 3: Tomcat Backend should receive the Original Request URL instead of the Modified URL. 3. Please let us know if there is any better approach that can be implemented. Thanks & Regards Uday Kumar ___ varni

Re: Unexpected Cache-Control Header Transmission in Dual-Server API Setup

2023-06-28 Thread Uday Kumar
eaders ("unset > req.http.cache-control;"). > > -- > Guillaume Quintard > > > On Wed, Jun 28, 2023 at 10:03 AM Uday Kumar > wrote: > >> Hi Guillaume, >> >> You are right! >> varnish is not adding any cache-control headers. >> &g

Re: Unexpected Cache-Control Header Transmission in Dual-Server API Setup

2023-06-28 Thread Uday Kumar
nsights? Thanks & Regards Uday Kumar On Wed, Jun 28, 2023 at 8:32 PM Guillaume Quintard < guillaume.quint...@gmail.com> wrote: > Hi Uday, > > That one should be quick: Varnish doesn't add cache-control headers on its > own. > > So, from what I understand it can com

Unexpected Cache-Control Header Transmission in Dual-Server API Setup

2023-06-28 Thread Uday Kumar
from API-1 is the crux of our issue. We kindly request your assistance in understanding the cause of this unexpected behavior. Additionally, we would greatly appreciate any guidance on how to effectively prevent this issue from occurring in the future. Thanks &am

Re: Issue with passing Cache-Control: no-cache header to Tomcat during cache misses

2023-06-15 Thread Uday Kumar
Thanks Dridi and Guillaume for clarification! On Thu, Jun 15, 2023, 18:30 Guillaume Quintard wrote: > Adding to what Dridi said, and just to be clear: the "cleaning" of those > well-known headers only occurs when the req object is copied into a beteq, > so there's nothing preventing you from sta

Re: Issue with passing Cache-Control: no-cache header to Tomcat during cache misses

2023-06-15 Thread Uday Kumar
C > has been updated by newer documents. > Where can I find details about the above code, could not find it in RFC 2616 14.9! Thanks & Regards, Uday Kumar ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Re: Issue with passing Cache-Control: no-cache header to Tomcat during cache misses

2023-06-14 Thread Uday Kumar
0.054594 0.002650 -- Length 36932 -- BereqAcct 574 0 574 276 36932 37208 -- End Thanks & Regards Uday Kumar On Tue, Jun 13, 2023 at 2:13 AM Guillaume Quintard < guillaume.quint...@gmail.com> wrote: > Hi Uday, > > Can you provide us with a log of the trans

Issue with passing Cache-Control: no-cache header to Tomcat during cache misses

2023-06-12 Thread Uday Kumar
ould appreciate your assistance in understanding the cause. *Expected Functionality:* If the request contains *Cache-Control: no-cache header then it should be passed to Tomcat* at Backend. Thanks & Regards Uday Kumar ___ varnish-misc mailing list varnis

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-06-05 Thread Uday Kumar
Hello Guillaume, Thanks for the update! (It's done by default if you don't have a vcl_hash section in your VCL) We can tweak it slightly so that we ignore the whole querystring: sub vcl_hash { hash_data(regsub(req.url, "\?.*","")); if (req.http.host) { ha

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-06-01 Thread Uday Kumar
Thanks for the prompt response! Thanks & Regards Uday Kumar On Thu, Jun 1, 2023 at 11:12 AM Guillaume Quintard < guillaume.quint...@gmail.com> wrote: > Thanks, so, to make things clean you are going to need to use a couple of > vmods, which means being able to compile them

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-05-31 Thread Uday Kumar
ust be unique as a whole. Ex: Parameter value for 1st request can be "Gn4lT*Y*gBgpPaRi6hw6*Y*S", 2nd request can be "G34lTYgBgpPaRi6hyaaF" and so on Thanks & Regards Uday Kumar ___ varnish-

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-05-31 Thread Uday Kumar
;s valid, and potentially generate its own parameter. > > But it all depends on what Tomcat expects from that parameter. > > -- > Guillaume Quintard > > > On Tue, May 30, 2023 at 11:18 PM Uday Kumar > wrote: > >> Hello Guillaume, >> >> Thank you so

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-05-30 Thread Uday Kumar
Hello Guillaume, Thank you so much for your help, will try modifying vcl_hash as suggested! > Last note: it would probably be better if the tomcat server didn't need > that unique parameter, or at the very least, if Varnish could just add it > itself rather than relying on client information as

Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-05-30 Thread Uday Kumar
o modify our Varnish configuration to address the above issues, your assistance would be greatly appreciated. Thanks & Regards Uday Kumar ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc