Alex G

  • Total activity 26
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 8

Activity overview

Latest activity by Alex G
  • Alex G commented,

    Thanks for the clarification!

  • Alex G commented,

    Thanks a lot, @triblondon! Went for option 1 since I guess logging in vcl_recv and vcl_recv for the same request would produce 2 logs entries.

  • Alex G created a post,

    Removing a header: unset vs remove?

    I was wondering what is the difference between unset resp.http.X-Powered-By; and remove resp.http.X-Powered-By;. They both seem to achieve the same thing - removing the HTTP header X-Powered-By.

  • Alex G created a post,

    Logging variable in request

    I’m currently using vcl_log to log values from vcl_recv. I basically create an HTTP header (e.g. set req.http.X-Foo-Bar = value;) in vcl_recv and then read it in vcl_log while generating the log me...

  • Alex G commented,

    Thanks, Justin! Wasn't aware of the subfield function. What does the third argument of the subfield function do? Is it a separator char?

  • Alex G created a post,

    Accessing query string parameters

    Cookies can be read using the following syntax: req.http.Cookie:user_id. Is there anything similar for query string parameters (e.g. req.url.qs:user_id)? So far I’ve been extracting values with a ...

  • Alex G commented,

    Got it! Thanks again, Peter.

  • Alex G commented,

    Thanks for your answer, Peter! Didn't know you could have a header twice! Wouldn't set zero out any aberrant values by overwriting a new value?

  • Alex G created a post,

    Unset before variable set

    Reading the guide for Delivering different content to different devices, I noticed that the suggested VCL does the following: unset req.http.X-UA-Device; unset req.http.X-UA-Vendor; set req...

  • Alex G commented,

    Is it now possible to do additions and subtractions with integer local variables?