Leon Brocard

  • Total activity 19
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 9

Activity overview

Latest activity by Leon Brocard
  • Leon Brocard commented,

    Hi James, You are correct: at the moment strings in VCL are C-like and are NUL (0x00) terminated. Unfortunately this means that you can't base64 decode strings which might contain NUL characters....

  • Leon Brocard commented,

    [quote="Suraj_Dalvi, post:1, topic:1066"] image/png [/quote] Hi Suraj, Something like the following should extract the png part of image/png: ```vcl if (req.http.Content-Type ~ "^...

  • Leon Brocard commented,

    Hi Quintin, The configuration for this website is very minimal: we use the default configuration of caching according to the Cache-Control headers sent by the origin. As mentioned in meta, this me...

  • Leon Brocard commented,

    We recently added local variables to VCL, including numeric and time types, which make these kinds of calculations easy: https://docs.fastly.com/guides/vcl/local-variables-in-vcl Feel free to rea...

  • Leon Brocard commented,

    I've been testing this particular use case recently, so let me pitch in ;-) It's probably best to read about the Amazon S3 Data Consistency Model: Amazon S3 offers eventual consistency for ove...

  • Leon Brocard commented,

    Hi. We’re looking at ways to make it easier to send structured data over logging - when we’ve got that figured out then we can add support for GELF and various other similar formats. Regards, Léon

  • Leon Brocard commented,

    Thanks for the suggestion. That seems like a reasonable feature and I've passed it on to our development team. Regards, Léon

  • Leon Brocard commented,

    Hi sky, You can only purge one key per request, so you'd have to make 100 requests. However, this suggests that perhaps you could have set a common surrogate key on all these objects? That would ...

  • Leon Brocard commented,

    Hi Will, Looks like this feature is live now. Enjoy! Leon

  • Leon Brocard commented,

    Hi there, I dug a little into RFC 4122 and found that it's possible to generate a version 4 UUID in VCL using the following rather long line: set req.http.UUID = randomstr(8, "0123456789abc...