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 to lowercase the

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

2023-08-31 Thread Uday Kumar
;\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 provide possible optimal soluti

Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-12 Thread Uday Kumar
ot;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 of source values. Our quest

Re: Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-12 Thread Uday Kumar
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, 2023 at 12:35 AM Guillaum

Re: Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-12 Thread Uday Kumar
itions. 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, > >

Re: Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-16 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 > confron

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

2023-08-23 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 diagr

Caching Modified URLs by Varnish instead of the original requested URL

2023-08-22 Thread Uday Kumar
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 ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache

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

2023-06-12 Thread Uday Kumar
ciate 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 varnish-misc@var

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

2023-06-15 Thread Uday Kumar
; 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

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

2023-05-30 Thread Uday Kumar
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

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

2023-05-31 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

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

2023-05-31 Thread Uday Kumar
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 much for

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

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: Unexpected Cache-Control Header Transmission in Dual-Server API Setup

2023-06-28 Thread Uday Kumar
s ("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. >> >

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

2023-06-28 Thread Uday Kumar
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 come from two plac

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

2023-06-28 Thread Uday Kumar
2 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 & Re

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

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

2023-06-14 Thread Uday Kumar
4594 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 transactio

Append uniqueid to a http request at varnish

2024-04-24 Thread Uday Kumar
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: 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: > htt

Re: Append uniqueid to a http request at varnish

2024-04-30 Thread Uday Kumar
r 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 you! > > > *

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.